AI-generated Key Takeaways
-
This documentation outlines the available global enumerations for the IMA SDK on iOS.
-
The enumerations include:
IMAErrorType
,IMAErrorCode
,IMAAdEventType
,IMAFriendlyObstructionPurpose
, andIMAUiElementType
. -
These enumerations define error types, error codes, ad events, obstruction purposes, and customizable UI elements respectively.
-
Each enumeration is available in both Swift and Objective-C with corresponding declarations provided.
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 {}