AdvertisementEventCreator
public class AdvertisementEventCreator: NSObject
EngageEvent creator for Advertisement playback events
-
Intialize the event creator using specified content id and advertisement id
Declaration
Swift
public init(contentId : String, advertisementId : String) -
Set the type of the advertisement being shown
Declaration
Swift
public func putAdType(type : String) -> AdvertisementEventCreatorParameters
typeType of the advertisement being shown
Return Value
AdvertisementEventCreator object after updating the adType
-
Set the total duration of the advertisement being shown
Declaration
Swift
public func putAdDuration(duration : String) -> AdvertisementEventCreatorParameters
typeduration of the advertisement being shown
Return Value
AdvertisementEventCreator object after updating the adDuration
-
Set the progress of the advertisement being shown
Declaration
Swift
public func putAdProgress(type : String) -> AdvertisementEventCreatorParameters
typeProgress of the advertisement being shown
Return Value
AdvertisementEventCreator object after updating the adProgress
-
Creates EngageEvent representing playback start event of the advertisement
Declaration
Swift
public func onAdPlaybackStarted() -> EngageEventReturn Value
EngageEvent representing playback start event of the advertisement
-
Creates EngageEvent representing playback complete event of the advertisement
Declaration
Swift
public func onAdPlaybackCompleted() -> EngageEventReturn Value
EngageEvent representing playback complete event of the advertisement
-
EngageEvent representing playback skip event of the advertisement
Declaration
Swift
public func onAdPlaybackSkipped() -> EngageEventReturn Value
EngageEvent representing playback skip event of the advertisement
AdvertisementEventCreator Class Reference