Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

RtkCameraToggleButton

最終更新 Markdown で表示Agent セットアップ

ローカルユーザーのカメラを切り替えるボタンです。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)

役に立ちましたか?