StorylyProductListener

interface StorylyProductListener

This delegate represents the class which notifies application when an product related event occurs in StorylyView.

Functions

storylyEvent
Link copied to clipboard
abstract fun storylyEvent(storylyView: StorylyView, event: StorylyEvent)

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

storylyHydration
Link copied to clipboard
abstract fun storylyHydration(storylyView: StorylyView, products: List<STRProductInformation>)

This function will notify you to get ids of products

storylyUpdateCartEvent
Link copied to clipboard
abstract fun storylyUpdateCartEvent(storylyView: StorylyView, event: StorylyEvent, cart: STRCart?, change: STRCartItem?, onSuccess: (STRCart?) -> Unit?, onFail: (STRCartEventResult) -> Unit?)

This function will notify you about updates the cart in a StorylyView component