ImaConfig
data class ImaConfig(val onAdsManagerAvailable: AdsManagerAvailableCallback? = null, val beforeInitialization: BeforeInitializationCallback? = null, val preferredUiElements: List<ImaUiElement>? = null, val preferredUiType: ImaUiType = ImaUiType.Ima) : Parcelable
Contains configuration options to customize behavior for Google IMA SDK.
Constructors
| ImaConfig | constructor(onAdsManagerAvailable: AdsManagerAvailableCallback? = null, beforeInitialization: BeforeInitializationCallback? = null, preferredUiElements: List<ImaUiElement>? = null, preferredUiType: ImaUiType = ImaUiType.Ima) |
Types
| Name | Summary |
|---|---|
| Builder | class Builder |
Properties
| Name | Summary |
|---|---|
| beforeInitialization | val beforeInitialization: BeforeInitializationCallback? Callback that provides access to the IMA ImaSdkSettings before any initialization happens. |
| onAdsManagerAvailable | val onAdsManagerAvailable: AdsManagerAvailableCallback? Callback that provides access to the IMA AdsManager when it gets available. |
| preferredUiElements | val preferredUiElements: List<ImaUiElement>? A list of preferred UI elements that should be displayed when an ad is active. Depending on the ad, this preference might be ignored, in that case a warning (com.bitmovin.player.api.deficiency.PlayerWarningCode.ApplyingImaUiElementPreferenceFailed) is emitted. |
| preferredUiType | val preferredUiType: ImaUiType The preferred UI type for IMA ads. Depending on the ad, this preference might be ignored, in that case a warning (com.bitmovin.player.api.deficiency.PlayerWarningCode.DisablingImaUiFailed) is emitted. |