StorylyProductDelegate

@objc(StorylyProductDelegate)
public protocol StorylyProductDelegate

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

  • This function will notify you to get ids of products

    Declaration

    Swift

    @objc
    optional func storylyHydration(_ storylyView: StorylyView, productIds: [String])

    Parameters

    storylyView

    StorylyView instance in which the user interacted with a component

    productIds

    Found product ids in stories

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

    Declaration

    Swift

    @objc
    optional func storylyEvent(_ storylyView: StorylyView,
                               event: StorylyEvent,
                               product: STRProductItem?,
                               extras: [String: String])

    Parameters

    storylyView

    StorylyView instance in which the event is received

    event

    Storyly event type which is received

    product

    Product which the event is received