Classes
The following classes are available globally.
- 
                  
                  An implementation of IMAContentPlayhead for AVPlayer. Use this class to provide content tracking if your content player of choice is an AVPlayer or its subclass. DeclarationSwift class IMAAVPlayerContentPlayhead : NSObject, IMAContentPlayheadObjective-C @interface IMAAVPlayerContentPlayhead : NSObject <IMAContentPlayhead>
- 
                  
                  An implementation of the IMAVideoDisplay protocol. This object is intended to be initialized with the content player, and will reuse the player for playing ads. DeclarationSwift class IMAAVPlayerVideoDisplay : NSObject, IMAVideoDisplayObjective-C @interface IMAAVPlayerVideoDisplay : NSObject <IMAVideoDisplay>
- 
                  
                  Data object representing a single ad. DeclarationSwift class IMAAd : NSObjectObjective-C @interface IMAAd : NSObject
- 
                  
                  The IMAAdDisplayContainer is responsible for managing the ad container view and companion ad slots used for ad playback. DeclarationSwift class IMAAdDisplayContainer : NSObjectObjective-C @interface IMAAdDisplayContainer : NSObject
- 
                  
                  Surfaces an error that occurred during ad loading or playing. DeclarationSwift class IMAAdError : NSObjectObjective-C @interface IMAAdError : NSObject
- 
                  
                  Simple data class used to transport ad playback information. DeclarationSwift class IMAAdEvent : NSObjectObjective-C @interface IMAAdEvent : NSObject
- 
                  
                  Simple data object containing podding metadata. DeclarationSwift class IMAAdPodInfo : NSObjectObjective-C @interface IMAAdPodInfo : NSObject
- 
                  
                  Ad data that is returned when the ads loader loads the ad. DeclarationSwift class IMAAdsLoadedData : NSObjectObjective-C @interface IMAAdsLoadedData : NSObject
- 
                  
                  Ad error data that is returned when the ads loader fails to load the ad. DeclarationSwift class IMAAdLoadingErrorData : NSObjectObjective-C @interface IMAAdLoadingErrorData : NSObject
- 
                  
                  The IMAAdsLoader class allows the requesting of ads from the ad server. Use the delegate to receive the loaded ads or loading error in case of failure. DeclarationSwift class IMAAdsLoader : NSObjectObjective-C @interface IMAAdsLoader : NSObject
- 
                  
                  The IMAAdsManager class is responsible for playing ads. DeclarationSwift class IMAAdsManager : NSObjectObjective-C @interface IMAAdsManager : NSObject
- 
                  
                  Set of properties that influence how ads are rendered. DeclarationSwift class IMAAdsRenderingSettings : NSObjectObjective-C @interface IMAAdsRenderingSettings : NSObject
- 
                  
                  Data class describing the ad request. DeclarationSwift class IMAAdsRequest : NSObjectObjective-C @interface IMAAdsRequest : NSObject
- 
                  
                  An object that holds data corresponding to the companion ad. DeclarationSwift class IMACompanionAd : NSObjectObjective-C @interface IMACompanionAd : NSObject
- 
                  
                  Ad slot for companion ads. The SDK will put a subview inside the provided UIView container. The companion will be matched to the width and height provided here. This class cannot be instantiated on tvOS, where companion ads are not available. DeclarationSwift class IMACompanionAdSlot : NSObjectObjective-C @interface IMACompanionAdSlot : NSObject
- 
                  
                  Data object representation of a cuepoint for a single ad break. DeclarationSwift class IMACuepoint : NSObjectObjective-C @interface IMACuepoint : NSObject
- 
                  
                  An obstruction that is marked as “friendly” for viewability measurement purposes. DeclarationSwift class IMAFriendlyObstruction : NSObjectObjective-C @interface IMAFriendlyObstruction : NSObject
- 
                  
                  Data object describing a live stream request. DeclarationSwift class IMALiveStreamRequest : IMAStreamRequestObjective-C @interface IMALiveStreamRequest : IMAStreamRequest
- 
                  
                  Undocumented DeclarationSwift class IMAPictureInPictureProxy : NSProxy, AVPictureInPictureControllerDelegate, AVPlayerViewControllerDelegateObjective-C @interface IMAPictureInPictureProxy : NSProxy <AVPictureInPictureControllerDelegate, AVPlayerViewControllerDelegate> #else @interface IMAPictureInPictureProxy : NSObject #endif /** * Whether or not Picture-in-Picture is currently active. */ @property(nonatomic, readonly, getter=isPictureInPictureActive) BOOL pictureInPictureActive; /** * Whether or not Picture-in-Picture is supported on this device. */ + (BOOL)isPictureInPictureSupported; /** * Instantiates an IMAPictureInPictureProxy that will proxy delegate * messages from an AVPictureInPictureController, and forward them * to the AVPictureInPictureControllerDelegate passed on init. * * @param delegate the AVPictureInPictureControllerDelegate * * @return an IMAPictureInPictureProxy instance */ - (instancetype)initWithAVPictureInPictureControllerDelegate: (id<AVPictureInPictureControllerDelegate>)delegate API_AVAILABLE(ios(9.0), tvos(14.0)); /** * Instantiates an IMAPictureInPictureProxy that will proxy delegate * messages from an AVPlayerViewController, and forward them to the * AVPlayerViewControllerDelegate passed on init. * * @param delegate the AVPlayerViewControllerDelegate * * @return an IMAPictureInPictureProxy instance */ - (instancetype)initWithAVPlayerViewControllerDelegate:(id<AVPlayerViewControllerDelegate>)delegate API_AVAILABLE(ios(9.0), tvos(14.0)); @end
- 
                  
                  Data object describing a stream request for a pod serving stream. DeclarationSwift class IMAPodStreamRequest : IMAStreamRequestObjective-C @interface IMAPodStreamRequest : IMAStreamRequest
- 
                  
                  Data object describing a stream request for a third party stitched server-side ad insertion pod serving VOD stream. DeclarationSwift class IMAPodVODStreamRequest : IMAStreamRequestObjective-C @interface IMAPodVODStreamRequest : IMAStreamRequest
- 
                  
                  Undocumented DeclarationSwift class IMASecureSignals : NSObjectObjective-C @interface IMASecureSignals : NSObject /** * Secure Signal with custom data sent with ads request. Secure Signal with custom * data is an encrypted blob containing signals collected by the publisher and previously agreed * upon by the publisher and bidder。 */ @property(nonatomic, copy, readonly) NSString *customData; - (instancetype)initWithCustomData:(NSString *)customData NS_DESIGNATED_INITIALIZER; /** * :nodoc: */ - (instancetype)init NS_UNAVAILABLE; @end
- 
                  
                  The IMASettings class stores SDK wide settings. DeclarationSwift class IMASettings : NSObject, NSCopyingObjective-C @interface IMASettings : NSObject <NSCopying>
- 
                  
                  The IMAStreamManager class is responsible for playing streams. DeclarationSwift class IMAStreamManager : NSObjectObjective-C @interface IMAStreamManager : NSObject
- 
                  
                  Data class describing the stream request. DeclarationSwift class IMAStreamRequest : NSObjectObjective-C @interface IMAStreamRequest : NSObject
- 
                  
                  Simple data object containing universal ad ID information. DeclarationSwift class IMAUniversalAdID : NSObjectObjective-C @interface IMAUniversalAdID : NSObject
- 
                  
                  Data object describing a VOD stream request. DeclarationSwift class IMAVODStreamRequest : IMAStreamRequestObjective-C @interface IMAVODStreamRequest : IMAStreamRequest
- 
                  
                  Undocumented DeclarationSwift class IMAVersion : NSObjectObjective-C @interface IMAVersion : NSObject /** Major version. */ @property(nonatomic) NSInteger majorVersion; /** Minor version. */ @property(nonatomic) NSInteger minorVersion; /** Patch version. */ @property(nonatomic) NSInteger patchVersion; @end
- 
                  
                  Data object describing a stream request for a Google video stitcher live serving stream. DeclarationSwift class IMAVideoStitcherLiveStreamRequest : IMAPodStreamRequestObjective-C @interface IMAVideoStitcherLiveStreamRequest : IMAPodStreamRequest
- 
                  
                  Data object describing a stream request for a Google video stitcher video on demand serving stream. DeclarationSwift class IMAVideoStitcherVODStreamRequest : IMAStreamRequestObjective-C @interface IMAVideoStitcherVODStreamRequest : IMAStreamRequest