You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is tutorialOptions variable? It's an instance of TutorialOptions class that holds all settings of your tutorial. See Configuring your tutorial with TutorialOptions for more details.
Listening for page changes
In some cases you need to get notifications when user navigates through tutorial. You can do it in old good fashion and add a ViewPager.OnPageChangeListener. But if you also enabled infinite scroll, you will receive invalid values of position variable. To get a proper position value you need to add an implementation of OnTutorialPageChangeListener into TutorialFragment#addOnTutorialPageChangeListener(...) method. To remove a listener just call TutorialFragment#removeOnTutorialPageChangeListener(...).
Custom tutorial layout
You can specify custom tutorial layout. All you need is:
Create your own XML layout for tutorial page. See our layout here.
Extend your tutorial fragment from TutorialFragment or TutorialSupportFragment.
Override all this getters and provide proper resource IDs.
....
Profit
You must always specify ViewPager. All other views are optional.