RtkCameraToggleButton
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)
这篇文档对你有帮助吗?
谢谢你的反馈!