You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to reproduce the issue. When jumpTo is called on the StoryEvent.trayTap, AdvStoryController throws an exception because the story view page controller has not been created yet. I will release a new version to fix the issue as soon as possible. I will provide an example for seen feature as well. Thanks for your feedback!
jumpTo bug fixed in version 0.2.0, but I have added interceptor support to make things better. When you call jumpTo on StoryEvent.trayTap, AdvStory creates tapped story and some of it's content and after that jumps to the given position, but using interceptor you can change opening position before view opened.
I didn't update docs yet, but you can look at interceptor example to see usage. Use setTrayTapInterceptor from controller, AdvStory calls this method when StoryEvent.trayTap happened. Return desired StoryPosition to open view at that position when needed, or return null to allow to continue default flow. At this point, I think I don't need to give an example, but if you have any problems, you can contact me.
Also you can add interceptor to block any other story event, not just for tray tap.
Some minor changes in this version may affect your project, please have a look at the changelog. Happy coding!
How can I implement seen feature like when I already saw the content It will jump to next content which not yet viewed?
Currently, when the tray open I can't skip or jump it using the controller listener.
The text was updated successfully, but these errors were encountered: