AdvertisingConfig
@objc(BMPAdvertisingConfig)
@objcMembers
public class AdvertisingConfig : NSObject, @unchecked Sendable
Contains config values regarding the ads which should be played back by the player.
-
Provides access to the current
ImaAdsManageronce it becomes available.Declaration
Swift
@available(visionOS, unavailable) public var onAdsManagerAvailable: ((ImaAdsManager) -> Void)? -
Callback that provides access to the
ImaSettingsbefore any initialization happens.Declaration
Swift
@available(visionOS, unavailable) public var beforeInitialization: ((ImaSettings) -> Void)? -
Configuration to customize Google IMA SDK integration behavior.
Declaration
Swift
@available(visionOS, unavailable) public var ima: ImaAdvertisingConfig -
Callback that will be called once for every
AdItemshortly before it would start loading. Iftrueis returned, theAdItemwill be scheduled for loading and playback. Iffalseis returned, theAdItemwill be discarded and removed from the ad schedule.Default is to load all ad items.
Declaration
Swift
public var shouldLoadAdItem: (AdItem) -> Bool -
Configuration to customize Bitmovin Advertising Module integration behavior.
Declaration
Swift
public var bitmovin: BitmovinAdvertisingConfig -
Creates a new
AdvertisingConfigwith empty ad schedule.Declaration
Swift
override public convenience init() -
Creates a new
AdvertisingConfigwith the given ad schedule.Declaration
Swift
public init(schedule: [AdItem])Parameters
scheduleThe ad schedule which will be used within this
AdvertisingConfig.
AdvertisingConfig Class Reference