Skip to main content

BBNativeShortsView

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

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

Constructor​

no need to call this directly; use BBNativeShorts' createShortsView factory function

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: BBNativeShortsViewDelegate?

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