AI-generated Key Takeaways
-
Protocols like
IMAAVPlayerVideoDisplayDelegateandIMAAdsManagerDelegateprovide callback mechanisms for various ad-related events and states. -
IMAAdPlaybackInfogroups properties of the ad player, whileIMAContentPlayheaddefines an interface for tracking video content progress. -
Delegates such as
IMAAdsLoaderDelegateandIMAVideoDisplayDelegatereceive state change callbacks from their respective loaders and displays. -
IMALinkOpenerDelegatesignals when a link has been opened or closed, andIMACompanionDelegatereceives events from companion ad slots. -
IMASecureSignalsAdapterprovides secure signals to the IMA SDK for auctions, andIMAStreamManagerDelegateis a callback protocol forIMAStreamManager.
Protocols
The following protocols are available globally.
-
A callback protocol for IMAAVPlayerVideoDisplayDelegate.
Declaration
Swift
protocol IMAAVPlayerVideoDisplayDelegate : NSObjectProtocolObjective-C
@protocol IMAAVPlayerVideoDisplayDelegate <NSObject> -
Groups various properties of the ad player.
Declaration
Swift
protocol IMAAdPlaybackInfo : NSObjectProtocolObjective-C
@protocol IMAAdPlaybackInfo <NSObject>
-
Delegate object that receives state change callbacks from IMAAdsLoader.
Declaration
Swift
protocol IMAAdsLoaderDelegateObjective-C
@protocol IMAAdsLoaderDelegate
-
A callback protocol for IMAAdsManager.
Declaration
Swift
protocol IMAAdsManagerDelegateObjective-C
@protocol IMAAdsManagerDelegate
-
Signals that a link has been opened/closed. For an external app (Mobile Safari/App deep link), the delegate is only notified before opening.
Declaration
Swift
protocol IMALinkOpenerDelegate : NSObjectProtocolObjective-C
@protocol IMALinkOpenerDelegate <NSObject>
-
Delegate to receive events from the companion ad slot.
Declaration
Swift
protocol IMACompanionDelegate : NSObjectProtocolObjective-C
@protocol IMACompanionDelegate <NSObject> -
Defines an interface for a class that tracks video content progress and exposes a key value observable property |currentTime|. The SDK provides an implementation for tracking AVPlayer-based playback in the IMAAVPlayerContentPlayhead. Publishers can supply their own implementation by implementing this interface and this way support any other video playback implementation they might have.
Declaration
Swift
protocol IMAContentPlayheadObjective-C
@protocol IMAContentPlayhead -
Adapter that provides secure signal(3rd party signal only) to the IMA SDK to be included in an
- auction.
Declaration
Swift
protocol IMASecureSignalsAdapter : NSObjectProtocolObjective-C
@protocol IMASecureSignalsAdapter <NSObject>
-
A callback protocol for IMAStreamManager.
Declaration
Swift
protocol IMAStreamManagerDelegateObjective-C
@protocol IMAStreamManagerDelegate -
Delegate object that receives state change callbacks from IMAVideoDisplay.
Declaration
Swift
protocol IMAVideoDisplayDelegate : NSObjectProtocolObjective-C
@protocol IMAVideoDisplayDelegate <NSObject> -
Declares a simple video display class used for ad playback.
Declaration
Swift
protocol IMAVideoDisplay : IMAAdPlaybackInfoObjective-C
@protocol IMAVideoDisplay <IMAAdPlaybackInfo>