StorylyMomentsDelegate

@objc
public protocol StorylyMomentsDelegate

This delegate represents the protocol which notifies application when an event occurs in Storyly Moments.

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

    Declaration

    Swift

    @objc
    optional func storylyMomentsEvent(event: StorylyMomentsEvent,
                                       storyGroup: MomentsStoryGroup?,
                                       stories: [MomentsStory]?)

    Parameters

    event

    Storyly event type which is received

    storyGroup

    Story group in which the event is received

    story

    Story in which the event is received

  • This function will notify you when user opens the media gallery to create a Moments story or when user is directed to upload screen with imported media

    Declaration

    Swift

    @objc
    optional func onOpenCreateStory(isDirectMediaUpload: Bool)

    Parameters

    isDirectMediaUpload

    This parameter is set to true if user directed to upload page with imported media

  • This function will notify you when user wants to preview own stories

    Declaration

    Swift

    @objc
    optional func onOpenMyStory()