AdInterstitialEventMonitor

@objc(AASDKAdInterstitialEventMonitor)
public protocol AdInterstitialEventMonitor

The AdInterstitialEventMonitor interface provides native support while playing ads from AdManager when paired with the insterstitial player provided by an instance of AVPlayerInterstitialEventMonitor or AVPlayerInterstitialEventController available from iOS 15+. It is designed to add interoperability between the AdManager it is set on and the native AVPlayerInterstitialEventController for scheduling and monitoring HLS interstitial events. Read more about AVPlayerInterstitialEventController at https://developer.apple.com/documentation/avfoundation/avplayerinterstitialeventcontroller

  • The native player (provided by the AVPlayerInterstitialEventController) which plays the ads during an AVPlayerInterstitialEvent.

    Declaration

    Swift

    @objc
    var interstitialPlayer: AVQueuePlayer { get }