ローカルユーザーのカメラを切り替えるボタンです。self の映像イベントを自動で購読し、状態を更新します。
| メソッド | パラメーター | 説明 |
|---|---|---|
activate |
meeting: RealtimeKitClient |
ボタンをミーティングの状態にバインドします |
deactivate |
- | ボタンのバインドを解除し、イベントリスナーを削除します |
<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)