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
contentIdIdentifier of the content for which events are created
-
Set the title of the content
Declaration
Swift
public func putTitle(title : String) -> ContentEventCreatorParameters
titleTitle of the content
Return Value
ContentEventCreator after updating title of content
-
Set the type of the content
Declaration
Swift
public func putType(type : String) -> ContentEventCreatorParameters
typeType 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) -> ContentEventCreatorParameters
sourceEx: 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() -> EngageEventReturn Value
EngageEvent representing content view
-
Creates EngageEvent representing content share
Declaration
Swift
public func onContentShare() -> EngageEventReturn Value
EngageEvent representing content share
-
Creates EngageEvent representing content shared with another application
Declaration
Swift
public func onContentShareWith(sharedWith : String) -> EngageEventParameters
sharedWithExternal 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() -> EngageEventReturn Value
EngageEvent representing content added favourites
-
Creates EngageEvent representing content removed from favourites
Declaration
Swift
public func onContentFavouriteRemoved() -> EngageEventReturn Value
EngageEvent representing content removed from favourites
-
Creates EngageEvent representing all content favourites cleared
Declaration
Swift
public func onContentFavouritesCleared() -> EngageEventReturn Value
EngageEvent representing all content favourites cleared
ContentEventCreator Class Reference