Customize onboarding

Customize existing pre-built pager

In OnboardingScreenContent you can change allSwipeDatas which is a list of OnboardingSwipeUniquePageData:

OnboardingSwipeUniquePageData(
    imageId = SharedRes.images.idea,
    titleText = SharedRes.strings.launch,
    subtitleText = SharedRes.strings.battle_tested_template,
    buttonText = SharedRes.strings.next,
)

Here you can customize image id which is an image resource, you can too customize texts with localizations.

Custom onboarding

Onboarding by default in AppKickstarter is displayed just once at startup.

If you want to have something different than the pager but keep the "only displayed at startup" feature, then you can just add your screens and flow such as :

OnboardingScreen1 : navigator.push(OnboardingScreen2)

OnboardingScreen2: navigator.push(OnboardingScreen3)

...

OnboardingScreenLatest:

val screenModel: OnboardingScreenModel = getScreenModel()
screenModel.setOnboardingSeen()

Last updated