← Cloudflare Realtime / realtime / realtimekit / ui-kit / api-reference / android
RtkLivestreamToggleButton
A toggle button for starting or stopping a livestream.
Methods
| Method | Parameters | Description |
|---|---|---|
activate |
meeting: RealtimeKitClient |
Bind 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
val livestreamToggle = findViewById<RtkLivestreamToggleButton>(R.id.rtk_livestream_toggle)
livestreamToggle.activate(meeting)