AI-generated Key Takeaways
-
This documentation outlines the globally available enumerations for the Interactive Media Ads (IMA) SDK for iOS.
-
The enumerations provide standardized values for error types, error codes, ad events, friendly obstruction purposes, and customizable UI elements.
-
Each enumeration is defined in both Swift and Objective-C with corresponding declarations.
-
Developers can utilize these enumerations to handle ad interactions, errors, and UI customizations within their iOS applications.
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 {}