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
| Parameter | Type | Description |
|---|---|---|
| limit | int | Limit for displaying the number of onboardings in one query |
| feed | String? | Shows a specified separate list by feed id |
| tags | List<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)');
}
}