We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed31992 commit 368d5bcCopy full SHA for 368d5bc
app/src/main/java/com/canopas/campose/showcase/MainActivity.kt
@@ -231,7 +231,7 @@ fun IntroShowcaseScope.BackButton(introShowcaseState: IntroShowcaseState) {
231
Button(
232
onClick = {
233
// Used to restart the intro showcase
234
- introShowcaseState.resetState()
+ introShowcaseState.reset()
235
},
236
) {
237
Text(text = "Restart Intro")
showcase/src/main/java/com/canopas/lib/showcase/component/IntroShowcaseState.kt
@@ -66,7 +66,7 @@ class IntroShowcaseState internal constructor(
66
/**
67
* Resets the state to its initial values, effectively restarting the showcase.
68
*/
69
- fun resetState() {
+ fun reset() {
70
currentTargetIndex = 0
71
}
72
0 commit comments