Package-level declarations

Types

Link copied to clipboard
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.

Link copied to clipboard

Reactive state holder that bridges BBNativePlayerViewDelegate callbacks to Compose state.

Link copied to clipboard
data class BBShortsOptions(val displayFormat: String? = null, val shelfStartSpacing: Int? = null, val shelfEndSpacing: Int? = null, val custom: Map<String, Any?>? = null)

Type-safe configuration options for BBNativeShorts.

Link copied to clipboard

Reactive state holder for BBNativeShorts.

Functions

Link copied to clipboard
fun BBNativePlayer(jsonUrl: String, modifier: Modifier = Modifier, options: BBPlayerOptions = BBPlayerOptions(), state: BBPlayerState = rememberBBPlayerState(), onReady: () -> Unit? = null, onError: (String?) -> Unit? = null, onEnded: () -> Unit? = null)

A Jetpack Compose wrapper for BBNativePlayerView.

Link copied to clipboard
fun BBNativeShorts(jsonUrl: String, modifier: Modifier = Modifier, options: BBShortsOptions = BBShortsOptions(), state: BBShortsState = rememberBBShortsState(), onReady: () -> Unit? = null, onError: (String?) -> Unit? = null)

A Jetpack Compose wrapper for BBNativeShortsView.

Link copied to clipboard

Remember a BBPlayerState instance scoped to the current composition.

Link copied to clipboard

Remember a BBShortsState instance scoped to the current composition.