Skip to main content

RtkCameraToggle

A button which toggles your camera.

<com.cloudflare.realtimekit.ui.view.controlbarbuttons.RtkCameraToggleButton
android:id="@+id/btn_camera_toggle"
android:layout_width="48dp"
android:layout_height="48dp"
app:rtk_cbb_showText="false"
/>

To setup the button inside kotlin/Java code do as follows

val cameraToggleButton = findViewById(R.id.btn_camera_toggle)
cameraToggleButton.activate(meeting)