-
Notifications
You must be signed in to change notification settings - Fork 129
Setting Listener in Kotlin ? #26
Comments
Duplicate of #23 |
I'm not sure how this is supposed to be a duplicate, #23 is all about a skip button but i was just having a problem with implementing the show case view in kotlin.
it might not be the perfect way to do it but at least it works, just wanted to share in case anyone else wants to do the same but don't know how. |
for using listener in kotlin you can use object instead of writing a class:
Or using Lambda
|
Works perfectly :), thank you very much for your efforts and help. |
Please excuse my question if it sounds too silly but im a beginner and im writing my app with Kotlin, i've implemented the ShowCaseView successfully and its working great when working with one ShowCaseView, im trying to make the app show several ShowCaseViews one after another but im having a hard time doing so in Kotlin, Kotlin dosn't allow overriding for local functions i've also tried to implement the GuideListener Interface in a class and then override onDismiss() fun from there but that didn't help.
below is the code i got working for a single ShowCase
The text was updated successfully, but these errors were encountered: