Skip to main content

BBNativeRendererView

class BBNativeRendererView @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
): FrameLayout(context, attrs, defStyleAttr) , EventListenerInterface, BBNativePlayerViewDelegate

BBNativeRendererView is what you place in your layout. It extends the platform’s core UI View class (more specifically: FrameLayout)

Parameters

NameDescription
contextshould be of type FragmentActivity (or AppCompatActivity) for the fullscreen and settings-sheet features
attrs(optional, default: null)
defStyleAttr(optional, default: 0)

Properties

delegate

var delegate: BBNativeRendererViewDelegate?

Delegate for handling API events

playerViewDelegate

var playerViewDelegate: BBNativePlayerViewDelegate?

Delegate for handling Player API events

Functions

__destruct

fun __destruct ()

Destruct, freeing all memory allocated internally

bootstrap

fun bootstrap (config: Map<String, String?>, element: View? = null, playoutOverrides: Map<String, Any?>? = mapOf())

Bootstrap

Parameters:

NameDescription
config
elementoptional target element (reserved for future use)
playoutOverridesoptional overrides for playout settings

destroy

fun destroy()

Destroy, freeing all memory allocated internally