Skip to main content

Single Story

info

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

To show single story in reader by id

InAppStoryManager.instance.showStory(storyId);

To show single story in reader by id if wasn't show already for current user

InAppStoryManager.instance.showStoryOnce(storyId);

Callbacks

To listen callbacks of result show()/showOnce() implement IASShowStoryCallback mixin and override listeners:

class _WidgetState extends State<T> with IASShowStoryCallback {

void alreadyShown() => print('IASShowStoryCallback.alreadyShown()');


void onError() => print('IASShowStoryCallback.onError()');


void onShow() => print('IASShowStoryCallback.onShow()');
}