AppTutorial

class AppTutorial : AppIntro

Carousel intro that introduces new users to the app. Shown when launching the app for the first time.

TODO: Optimize images, causes out of memory on emulator with low memory.

See also

AppIntro for more information

Constructors

AppTutorial
Link copied to clipboard
fun AppTutorial()

Functions

onCreate
Link copied to clipboard
protected open override fun onCreate(savedInstanceState: Bundle?)

Sets display options (setTransformer), adds all slides to the carousel (addSlide) and requests specified app permissions upon reaching the last slide (askForPermissions)

onDonePressed
Link copied to clipboard
protected open override fun onDonePressed(currentFragment: Fragment?)
onSlideChanged
Link copied to clipboard
protected open override fun onSlideChanged(oldFragment: Fragment?, newFragment: Fragment?)

Callback that's being called when a new slide is displayed

savePrefsAndStartCameraActivity
Link copied to clipboard
private fun savePrefsAndStartCameraActivity()

Updates shared preferences (on-boarding complete) and launches CameraActivity