Skip to content

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

RtkAudioDeviceSelector

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

音声デバイスを選択するためのセレクターコンポーネントです。

プロパティ

プロパティ 型 必須 デフォルト 説明
rtk_ds_label string ❌ Audio カスタムラベルのテキスト

メソッド

メソッド パラメーター 説明
activate meeting: RealtimeKitClient セレクターをミーティングの状態にバインドします
disableLabel - ドロップダウン上のラベルテキストを無効にします
applyDesignTokens designTokens: RtkDesignTokens テーマ用のカスタム design tokens を適用します

使用例

基本的な使い方

<com.cloudflare.realtimekit.ui.view.RtkAudioDeviceSelector
    android:id="@+id/audioSelector"
    app:rtk_ds_label="Audio"
    android:layout_width="0dp"
    android:layout_height="wrap_content" />

メソッドを使う

val audioSelector = findViewById<RtkAudioDeviceSelector>(R.id.audioSelector)
audioSelector.activate(meeting)

役に立ちましたか?