Skip to content

RtkLivestreamToggleButton

A toggle button for starting or stopping a livestream.

Methods

MethodParametersDescription
activatemeeting: RealtimeKitClientBind the button to the meeting state

Usage Examples

Basic Usage

<com.cloudflare.realtimekit.ui.view.RtkLivestreamToggleButton
android:id="@+id/rtk_livestream_toggle"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

With Methods

Kotlin
val livestreamToggle = findViewById<RtkLivestreamToggleButton>(R.id.rtk_livestream_toggle)
livestreamToggle.activate(meeting)