AI-generated Key Takeaways
-
IMAAdEvent
is a simple data class used to transport ad playback information. -
It provides information like the type of ad event (e.g., start, complete), the current ad playing, and any extra data associated with the ad.
-
The
type
property indicates the nature of the event, whiletypeString
offers a human-readable representation of that type. -
The
ad
property holds the details of the current or recently played ad and is available for specific events like start, quartiles, midpoint, complete, and tap. -
adData
can contain additional details about the ad in the form of a dictionary.
IMAAdEvent
@interface IMAAdEvent : NSObject
Simple data class used to transport ad playback information.
-
Type of the event.
Declaration
Swift
var type: IMAAdEventType { get }
Objective-C
@property (nonatomic, readonly) IMAAdEventType type;
-
Stringified type of the event.
Declaration
Swift
var typeString: String { get }
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull typeString;
-
Extra data about the ad.
Declaration
Swift
var adData: [String : Any]? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSDictionary<NSString *, id> *adData;