StorylyListener

interface StorylyListener

This interface represents StorylyListener which notifies application when an event occurs in StorylyView.

Functions

storylyActionClicked
Link copied to clipboard
open fun storylyActionClicked(storylyView: StorylyView, story: Story)

This function will notify your application in case of Swipe Up or CTA Button action.

storylyEvent
Link copied to clipboard
open fun storylyEvent(storylyView: StorylyView, event: StorylyEvent, storyGroup: StoryGroup?, story: Story?, storyComponent: StoryComponent?)

This function will notify you about all Storyly events and let you to send these events to specific data platforms

storylyLoaded
Link copied to clipboard
open fun storylyLoaded(storylyView: StorylyView, storyGroupList: List<StoryGroup>, dataSource: StorylyDataSource)

This function will let you know that Storyly has completed its network operations and story group list has just shown to the user.

storylyLoadFailed
Link copied to clipboard
open fun storylyLoadFailed(storylyView: StorylyView, errorMessage: String)

This function will let you know that Storyly has completed its network operations and had a problem while fetching your stories

storylyStoryDismissed
Link copied to clipboard
open fun storylyStoryDismissed(storylyView: StorylyView)

This function will let you know that user dismissed the current story while watching it.

storylyStoryShowFailed
Link copied to clipboard
open fun storylyStoryShowFailed(storylyView: StorylyView, errorMessage: String)

This function will let you know that programmatic story show are failed.

storylyStoryShown
Link copied to clipboard
open fun storylyStoryShown(storylyView: StorylyView)

This function will let you know that stories are started to be shown to the users.

storylyUserInteracted
Link copied to clipboard
open fun storylyUserInteracted(storylyView: StorylyView, storyGroup: StoryGroup, story: Story, storyComponent: StoryComponent)

This function will allow you to get reactions of users from specific interactive components.