[ Web Proxy ]
URL:
Viewing: https://developers.cloudflare.com/realtime/realtimekit/ui-kit/api-reference/android/camera-toggle/ [Back]  [Original]

RtkCameraToggleButton Cloudflare Realtime docsSkip to content
SearchCtrlKLog in
  1. Home
  2. /Realtime
  3. /
  4. /Android
  5. /RtkCameraToggleButton

RtkCameraToggleButton

Last updated Apr 21, 2026Copy as MarkdownView as MarkdownAgent 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.

Methods

Method Parameters Description
activate meeting: RealtimeKitClient Bind the button to the meeting state
deactivate - Unbind the button and remove event listeners

Usage Examples

Basic Usage

<com.cloudflare.realtimekit.ui.view.controlbarbuttons.RtkCameraToggleButton
    android:id="@+id/btn_camera_toggle"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />

With Methods

val cameraToggleButton = findViewById<RtkCameraToggleButton>(R.id.btn_camera_toggle)
cameraToggleButton.activate(meeting)
PreviousRtkButtonNextRtkChatBottomSheet

Was this helpful?

YesNo
Edit pageReport issue
[]

Web Proxy Viewer  |  New URL  |  Original Page