ContentEventCreator

public class ContentEventCreator: NSObject

EngageEvent creator for Media Content events

  • Initializes the event creator using specified content id

    Declaration

    Swift

    public init(contentId : String)

    Parameters

    contentId

    Identifier of the content for which events are created

  • Set the title of the content

    Declaration

    Swift

    public func putTitle(title : String) -> ContentEventCreator

    Parameters

    title

    Title of the content

    Return Value

    ContentEventCreator after updating title of content

  • Set the type of the content

    Declaration

    Swift

    public func putType(type : String) -> ContentEventCreator

    Parameters

    type

    Type of the content Example: Movies, series, news etc.

    Return Value

    ContentEventCreator after updating type of content

  • Set the source of the content

    Declaration

    Swift

    public func putSource(source : String) -> ContentEventCreator

    Parameters

    source

    Ex: search, section, category, favourite, recently-watched, download

    Return Value

    ContentEventCreator after updating source of content

  • Creates EngageEvent representing content view

    Declaration

    Swift

    public func onContentView() -> EngageEvent

    Return Value

    EngageEvent representing content view

  • Creates EngageEvent representing content share

    Declaration

    Swift

    public func onContentShare() -> EngageEvent

    Return Value

    EngageEvent representing content share

  • Creates EngageEvent representing content shared with another application

    Declaration

    Swift

    public func onContentShareWith(sharedWith : String) -> EngageEvent

    Parameters

    sharedWith

    External application with which content is shared

    Return Value

    EngageEvent representing content shared with another application

  • Creates EngageEvent representing content added favourites

    Declaration

    Swift

    public func onContentAddedToFavourites() -> EngageEvent

    Return Value

    EngageEvent representing content added favourites

  • Creates EngageEvent representing content removed from favourites

    Declaration

    Swift

    public func onContentFavouriteRemoved() -> EngageEvent

    Return Value

    EngageEvent representing content removed from favourites

  • Creates EngageEvent representing all content favourites cleared

    Declaration

    Swift

    public func onContentFavouritesCleared() -> EngageEvent

    Return Value

    EngageEvent representing all content favourites cleared