Protocols

The following protocols are available globally.

  • A callback protocol for IMAAVPlayerVideoDisplayDelegate.

    Declaration

    Swift

    protocol IMAAVPlayerVideoDisplayDelegate : NSObjectProtocol

    Objective-C

    @protocol IMAAVPlayerVideoDisplayDelegate <NSObject>
  • Groups various properties of the ad player.

    Declaration

    Swift

    protocol IMAAdPlaybackInfo : NSObjectProtocol

    Objective-C

    @protocol IMAAdPlaybackInfo <NSObject>
  • Delegate object that receives state change callbacks from IMAAdsLoader.

    Declaration

    Swift

    protocol IMAAdsLoaderDelegate

    Objective-C

    @protocol IMAAdsLoaderDelegate
  • A callback protocol for IMAAdsManager.

    Declaration

    Swift

    protocol IMAAdsManagerDelegate

    Objective-C

    @protocol IMAAdsManagerDelegate
  • Signals that a internal or external web browser has been opened or closed. For an external browser (Mobile Safari), the delegate is only notified before opening.

    Declaration

    Swift

    protocol IMAWebOpenerDelegate : NSObjectProtocol

    Objective-C

    @protocol IMAWebOpenerDelegate <NSObject>
  • Delegate to receive events from the companion ad slot.

    Declaration

    Swift

    protocol IMACompanionDelegate : NSObjectProtocol

    Objective-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 IMAContentPlayhead

    Objective-C

    @protocol IMAContentPlayhead
  • A callback protocol for IMAStreamManager.

    Declaration

    Swift

    protocol IMAStreamManagerDelegate

    Objective-C

    @protocol IMAStreamManagerDelegate
  • Delegate object that receives state change callbacks from IMAVideoDisplay.

    Declaration

    Swift

    protocol IMAVideoDisplayDelegate : NSObjectProtocol

    Objective-C

    @protocol IMAVideoDisplayDelegate <NSObject>
  • Declares a simple video display class used for ad playback.

    Declaration

    Swift

    protocol IMAVideoDisplay : IMAAdPlaybackInfo

    Objective-C

    @protocol IMAVideoDisplay <IMAAdPlaybackInfo>