Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to save story id when every story start #143

Closed
goodboygb1 opened this issue Mar 21, 2023 · 2 comments
Closed

How to save story id when every story start #143

goodboygb1 opened this issue Mar 21, 2023 · 2 comments

Comments

@goodboygb1
Copy link

I want to save story id to local storage to check seen and unseen story, so my question is which function do i have to put my code on. I already look on StoryPreviewProtocol but can't found function that trigger when every story start

Thanks for your help

@ranmyfriend
Copy link
Member

Hi @goodboygb1 you can collect your viewed story using snapIndex - didSet method create your function in StoryPreviewProtocol and whenever the SnapMovementDirectionState.Forward direction called, you can throw your viewedSnap to your own viewcontroller. Story can have multiple snaps. snap mime type can be a image/Video/etc. How ever you can track which snap already viewed by which story. both you can capture with help of this!!!

@goodboygb1
Copy link
Author

Thanks a lot for your help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants