GoogleInteractiveMediaAds Framework Reference

  • This documentation lists globally available enumerations used by the IMA SDK for tvOS.

  • Enumerations detail error types and codes, ad events, friendly obstruction purposes and customizable UI elements.

  • Each enumeration is defined for Swift and Objective-C, outlining their respective types and purposes within the SDK.

  • Developers can use these enumerations to handle ad interactions, errors, and UI customization within their tvOS apps.

Enumerations

The following enumerations are available globally.

  • Possible error types while loading or playing ads.

    Declaration

    Swift

    enum IMAErrorType : Int, @unchecked Sendable

    Objective-C

    enum IMAErrorType : NSInteger {}
  • Possible error codes raised while loading or playing ads.

    Declaration

    Swift

    enum IMAErrorCode : Int, @unchecked Sendable

    Objective-C

    enum IMAErrorCode : NSInteger {}
  • Different event types sent by the IMAAdsManager to its delegate.

    Declaration

    Swift

    enum IMAAdEventType : Int, @unchecked Sendable

    Objective-C

    enum IMAAdEventType : NSInteger {}
  • A list of purposes for which an obstruction would be registered as friendly.

    Declaration

    Swift

    enum IMAFriendlyObstructionPurpose : UInt, @unchecked Sendable

    Objective-C

    enum IMAFriendlyObstructionPurpose : NSUInteger {}
  • Different UI elements that can be customized.

    Declaration

    Swift

    enum IMAUiElementType : Int, @unchecked Sendable

    Objective-C

    enum IMAUiElementType : NSInteger {}