BMPAdvertisingConfiguration
Objective-C
@interface BMPAdvertisingConfiguration : BMPConfiguration
Swift
class AdvertisingConfiguration : Configuration
Contains configuration values regarding the ads which should be played back by the player.
-
Contains one or more AdItem(s). Each AdItem defines when the specified ad shall be played.
See
BMPAdItemDeclaration
Objective-C
@property (nonatomic, copy, readonly) NSArray<BMPAdItem *> *_Nonnull schedule;
Swift
var schedule: [AdItem] { get }
-
Provides access to the current IMAAdsManager once it becomes available.
Declaration
Objective-C
@property (nonatomic, copy, nullable) void (^) (IMAAdsManager *_Nonnull) onAdsManagerAvailable;
Swift
var onAdsManagerAvailable: ((IMAAdsManager) -> Void)? { get set }
-
Callback that provides access to the IMASettings before any initialization happens.
@discussion Changes to enableDebugMode, playerType and autoPlayAdBreaks will be ignored.
Declaration
Objective-C
@property (nonatomic, copy, nullable) void (^)(IMASettings *_Nonnull) beforeInitialization;
Swift
var beforeInitialization: ((IMASettings) -> Void)? { get set }
-
Creates a new AdvertisingConfiguration with the given ad schedule.
Declaration
Objective-C
- (nonnull instancetype)initWithSchedule: (nonnull NSArray<BMPAdItem *> *)schedule;
Swift
init(schedule: [AdItem])
Parameters
schedule
The ad schedule which will be used within this AdvertisingConfiguration.
Return Value
The newly created AdvertisingConfiguration.