AdCompanionOptions
@objc(AASDKAdCompanionOptions)
public class AdCompanionOptions : NSObject
The options class to configure all AdCompanionView instances.
-
Set how long the banner is supposed to keep its content visible after the ad is ended. The default value is 0, which means the companion content is removed when the ad ends. If
extraExposureTimeis Double.greatestFiniteMagnitude or negative, then the companion content will be exposed forever or until the next companion is ready to display its content. If fallback companions are active andextraExposureTimeis activated, then the fallback companions will be delayed.Declaration
Swift
@objc public var extraExposureTime: TimeInterval -
Set the preferred resource type for the
AdCompanionViewinstances to select and load when querying through the associatedCompaniondata. When there is no preferred type or no matching resource is found, it defaults to the first found valid resource.Declaration
Swift
@objc public var preferredResourceType: AdCompanionResourceType -
Set the preferred resource type for the
AdCompanionViewinstances to select and load when querying through the associatedCompaniondata. For tvOS platform the only available resource type is static image.