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
contentIdidentifier of the content
-
Set the title of the content
Declaration
Swift
public func putContentTitle(title : String) -> DownloadEventCreatorParameters
titleTitle 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) -> DownloadEventCreatorParameters
typeType 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) -> DownloadEventCreatorParameters
sourceSource 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() -> EngageEventReturn Value
EngageEvent representing content download started
-
Creates EngageEvent representing content download paused
Declaration
Swift
public func onDownloadPaued() -> EngageEventReturn Value
EngageEvent representing content download paused
-
Creates EngageEvent representing content download resumed
Declaration
Swift
public func onDownloadResumed() -> EngageEventReturn Value
EngageEvent representing content download resumed
-
Creates EngageEvent representing content download stopped
Declaration
Swift
public func onDownloadStopped() -> EngageEventReturn Value
EngageEvent representing content download stopped
-
Creates EngageEvent representing content download completed
Declaration
Swift
public func onDownloadCompleted() -> EngageEventReturn Value
EngageEvent representing content download completed
-
Creates EngageEvent representing content download error occurred
Declaration
Swift
public func onDownloadError() -> EngageEventReturn Value
EngageEvent representing content download error occurred
DownloadEventCreator Class Reference