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

Link copied to clipboard
constructor(onAdsManagerAvailable: AdsManagerAvailableCallback? = null, beforeInitialization: BeforeInitializationCallback? = null, preferredUiElements: List<ImaUiElement>? = null, preferredUiType: ImaUiType = ImaUiType.Ima)

Properties

Link copied to clipboard

Callback that provides access to the IMA ImaSdkSettings before any initialization happens.

Link copied to clipboard

Callback that provides access to the IMA AdsManager when it gets available.

Link copied to clipboard

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.

Link copied to clipboard

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.