AI-generated Key Takeaways
-
The
IMACompanionAdobject holds data for a companion ad. -
It provides access to the ad's resource value.
-
The object includes the required API framework for ad execution.
-
It specifies the width and height of the companion ad in pixels.
IMACompanionAd
@interface IMACompanionAd : NSObjectAn object that holds data corresponding to the companion ad.
-
The value for the resource of this companion.
Declaration
Swift
var resourceValue: String? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *resourceValue; -
The API needed to execute this ad, or nil if unavailable.
Declaration
Swift
var apiFramework: String? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *APIFramework; -
The width of the companion in pixels. 0 if unavailable.
Declaration
Swift
var width: Int { get }Objective-C
@property (nonatomic, readonly) NSInteger width; -
The height of the companion in pixels. 0 if unavailable.
Declaration
Swift
var height: Int { get }Objective-C
@property (nonatomic, readonly) NSInteger height;