AdvertisingConfig

data class AdvertisingConfig(schedule: List<AdItem>, companionAdContainers: List<CompanionAdContainer>?, adsManagerAvailableCallback: AdsManagerAvailableCallback?, beforeInitialization: BeforeInitializationCallback?) : Parcelable

Contains configuration values regarding the ads which should be played back by the player.

Constructors

AdvertisingConfig
Link copied to clipboard
fun AdvertisingConfig(companionAdContainers: List<CompanionAdContainer>? = null, vararg adItems: AdItem)
AdvertisingConfig
Link copied to clipboard
fun AdvertisingConfig(vararg adItems: AdItem)
AdvertisingConfig
Link copied to clipboard
fun AdvertisingConfig(schedule: List<AdItem> = emptyList(), companionAdContainers: List<CompanionAdContainer>? = null, adsManagerAvailableCallback: AdsManagerAvailableCallback? = null, beforeInitialization: BeforeInitializationCallback? = null)

Properties

adsManagerAvailableCallback
Link copied to clipboard
var adsManagerAvailableCallback: AdsManagerAvailableCallback? = null
The AdsManagerAvailableCallback currently in use.
beforeInitialization
Link copied to clipboard
var beforeInitialization: BeforeInitializationCallback? = null
Callback that provides access to the google.ima.ImaSdkSettings before any initialization happens.
companionAdContainers
Link copied to clipboard
val companionAdContainers: List<CompanionAdContainer>? = null
schedule
Link copied to clipboard
val schedule: List<AdItem>
The ad items that are scheduled when a new playback session is started via Player.load.

Inherited functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)