AdvertisingConfig

@objc(BMPAdvertisingConfig)
@objcMembers
public class AdvertisingConfig : NSObject

Contains config 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.

    Declaration

    Swift

    public var schedule: [AdItem]
  • Provides access to the current ImaAdsManager once it becomes available.

    Declaration

    Swift

    public var onAdsManagerAvailable: ((ImaAdsManager) -> Void)?
  • Callback that provides access to the ImaSettings before any initialization happens.

    Declaration

    Swift

    public var beforeInitialization: ((ImaSettings) -> Void)?
  • ima

    Configuration to customize Google IMA SDK integration behavior.

    Declaration

    Swift

    public var ima: ImaAdvertisingConfig
  • Creates a new AdvertisingConfig with empty ad schedule.

    Declaration

    Swift

    override public convenience init()
  • Creates a new AdvertisingConfig with the given ad schedule.

    Declaration

    Swift

    public init(schedule: [AdItem])

    Parameters

    schedule

    The ad schedule which will be used within this AdvertisingConfig.