Skip to main content

Onboardings

The library supports work with onboarding stories.

info

Starting from SDK version 0.8.0, the call of showing onboardings has changed. If you are upgrading from older version please see migration guide here.

Usage

void showOnboarding() {
InAppStoryManager.instance.showOnboarding(limit: 10);
}

Parameters

ParameterTypeDescription
limitintLimit for displaying the number of onboardings in one query
feedString?Shows a specified separate list by feed id
tagsList<String>?Overrides settings tags

Callbacks

To listen for callbacks from onboardings implement IASOnboardingLoadCallback mixin:

class _MyAppState extends State<MyApp> with IASOnboardingLoadCallback {

void onboardingLoad(int count, String feed) {
print('onboardingLoad($count, $feed)');
}


void onboardingLoadError(String feed, String? reason) {
print('onboardingLoad($feed, $reason)');
}
}