Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

RtkMicToggleButton

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

ローカルユーザーのマイクを切り替えるボタンです。自身の音声イベントを自動で監視し、状態を更新します。

メソッド

メソッド パラメーター 説明
activate meeting: RealtimeKitClient ボタンをミーティングの状態にバインドします
deactivate - ボタンのバインドを解除し、イベントリスナーを削除します

使用例

基本的な使い方

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

メソッドを使う場合

val micToggleButton = findViewById<RtkMicToggleButton>(R.id.btn_mic_toggle)
micToggleButton.activate(meeting)

役に立ちましたか?