ImaConfig

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

ImaConfigconstructor(onAdsManagerAvailable: AdsManagerAvailableCallback? = null, beforeInitialization: BeforeInitializationCallback? = null, preferredUiElements: List<ImaUiElement>? = null, preferredUiType: ImaUiType = ImaUiType.Ima)

Types

NameSummary
Builderclass Builder

Properties

NameSummary
beforeInitializationval beforeInitialization: BeforeInitializationCallback?
Callback that provides access to the IMA ImaSdkSettings before any initialization happens.
onAdsManagerAvailableval onAdsManagerAvailable: AdsManagerAvailableCallback?
Callback that provides access to the IMA AdsManager when it gets available.
preferredUiElementsval 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.
preferredUiTypeval 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.