- Home
- /Realtime
- /…
- /Android
- /RtkCameraToggleButton
RtkCameraToggleButton
Last updated Apr 21, 2026|Copy as Markdown|View as Markdown|Agent setup OverviewMethodsUsage ExamplesBasic UsageWith Methods
A button which toggles the local user's camera. It automatically listens to self video events to update its state.
<com.cloudflare.realtimekit.ui.view.controlbarbuttons.RtkCameraToggleButton
android:id="@+id/btn_camera_toggle"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
val cameraToggleButton = findViewById<RtkCameraToggleButton>(R.id.btn_camera_toggle)
cameraToggleButton.activate(meeting)
PreviousRtkButtonNextRtkChatBottomSheet