THEOadsIntegration
public protocol THEOadsIntegration : EventDispatcherProtocol, Integration
Integration to enable TheoAds on a THEOplayer
-
The currently playing interstitials.
Declaration
Swift
var currentInterstitials: [Interstitial] { get } -
List of interstitials which still need to be played.
Declaration
Swift
var scheduledInterstitials: [Interstitial] { get } -
Replaces all of the ad tag parameters used for upcoming ad requests
Declaration
Swift
func replaceAdTagParams(params: Dictionary<String, String>) -
Adds the given event listener of the given THEOadsEventTypes.
Remark
When attaching a listener on the wrong object the application will crash.
Declaration
Swift
func addEventListener<E>(type: EventType<E>, listener: @escaping (E) -> ()) -> THEOplayerSDK.EventListener where E : EventProtocolParameters
typeTHEOadsEventTypes of the added event listener.
listenerClosure called when event is dispatched.
Return Value
EventListener that can be removed.
-
Removes the given event listener of the given THEOadsEventTypes.
Declaration
Swift
func removeEventListener<E>(type: EventType<E>, listener: THEOplayerSDK.EventListener) where E : EventProtocolParameters
typeTHEOadsEventTypes of the removed event listener.
listenerEventListener object that has been return on addEventListener.