DownloadEventCreator

public class DownloadEventCreator: NSObject

EngageEvent creator for Content Download events

  • Initializes the event creator using specified download content id

    Declaration

    Swift

    public init(contentId : String)

    Parameters

    contentId

    identifier of the content

  • Set the title of the content

    Declaration

    Swift

    public func putContentTitle(title : String) -> DownloadEventCreator

    Parameters

    title

    Title of the content

    Return Value

    DownloadEventCreator object after updating title of content

  • Set the type of the content

    Declaration

    Swift

    public func putContentType(type : String) -> DownloadEventCreator

    Parameters

    type

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

    Return Value

    DownloadEventCreator object after updating type of content

  • Set the source of the content

    Declaration

    Swift

    public func putContentSource(source : String) -> DownloadEventCreator

    Parameters

    source

    Source of the content Example: Section, search, favourite, downloads etc.

    Return Value

    DownloadEventCreator object after updating source of content

  • Creates EngageEvent representing content download started

    Declaration

    Swift

    public func onDownloadStarted() -> EngageEvent

    Return Value

    EngageEvent representing content download started

  • Creates EngageEvent representing content download paused

    Declaration

    Swift

    public func onDownloadPaued() -> EngageEvent

    Return Value

    EngageEvent representing content download paused

  • Creates EngageEvent representing content download resumed

    Declaration

    Swift

    public func onDownloadResumed() -> EngageEvent

    Return Value

    EngageEvent representing content download resumed

  • Creates EngageEvent representing content download stopped

    Declaration

    Swift

    public func onDownloadStopped() -> EngageEvent

    Return Value

    EngageEvent representing content download stopped

  • Creates EngageEvent representing content download completed

    Declaration

    Swift

    public func onDownloadCompleted() -> EngageEvent

    Return Value

    EngageEvent representing content download completed

  • Creates EngageEvent representing content download error occurred

    Declaration

    Swift

    public func onDownloadError() -> EngageEvent

    Return Value

    EngageEvent representing content download error occurred