BBPlayerOptions

data class BBPlayerOptions(val autoPlay: Boolean? = null, val muted: Boolean? = null, val noChromeCast: Boolean? = null, val noStats: Boolean? = null, val commercials: Boolean? = null, val forceFullscreenLandscape: Boolean? = null, val allowCollapseExpand: Boolean? = null, val showChromeCastMiniControlsInPlayer: Boolean? = null, val showDescription: Boolean? = null, val waitForCmp: Boolean? = null, val handleConsentManagement: Boolean? = null, val tagForUnderAgeOfConsent: Boolean? = null, val consentString: String? = null, val consentGdprApplies: Int? = null, val consentCmpVersion: Int? = null, val adsystemPpid: String? = null, val adsystemBuid: String? = null, val adTagUrlParams: Map<String, String>? = null, val custom: Map<String, Any?>? = null)

Type-safe configuration options for BBNativePlayer.

Replaces the untyped Map<String, Any?> options parameter with compile-time checked properties. Use custom as an escape hatch for any options not yet covered by typed properties.

See also

Constructors

Link copied to clipboard
constructor(autoPlay: Boolean? = null, muted: Boolean? = null, noChromeCast: Boolean? = null, noStats: Boolean? = null, commercials: Boolean? = null, forceFullscreenLandscape: Boolean? = null, allowCollapseExpand: Boolean? = null, showChromeCastMiniControlsInPlayer: Boolean? = null, showDescription: Boolean? = null, waitForCmp: Boolean? = null, handleConsentManagement: Boolean? = null, tagForUnderAgeOfConsent: Boolean? = null, consentString: String? = null, consentGdprApplies: Int? = null, consentCmpVersion: Int? = null, adsystemPpid: String? = null, adsystemBuid: String? = null, adTagUrlParams: Map<String, String>? = null, custom: Map<String, Any?>? = null)

Properties

Link copied to clipboard
val adsystemBuid: String? = null
Link copied to clipboard
val adsystemPpid: String? = null
Link copied to clipboard

Custom parameters to add to ad tag URLs. Keys should NOT include the "adTagUrlParam_" prefix.

Link copied to clipboard
Link copied to clipboard
val autoPlay: Boolean? = null
Link copied to clipboard
val commercials: Boolean? = null
Link copied to clipboard
val consentCmpVersion: Int? = null
Link copied to clipboard
val consentGdprApplies: Int? = null
Link copied to clipboard
val consentString: String? = null
Link copied to clipboard
val custom: Map<String, Any?>? = null

Escape hatch for custom or undocumented options.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val muted: Boolean? = null
Link copied to clipboard
val noChromeCast: Boolean? = null
Link copied to clipboard
val noStats: Boolean? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val waitForCmp: Boolean? = null