Skip to content

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

RtkVideoDeviceSelector

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

映像デバイスを選ぶためのセレクターコンポーネントです。

プロパティ

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

メソッド

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

使用例

基本的な使い方

<com.cloudflare.realtimekit.ui.view.RtkVideoDeviceSelector
    android:id="@+id/videoSelector"
    app:rtk_ds_label="Camera"
    android:layout_width="0dp"
    android:layout_height="wrap_content" />

メソッドを使う場合

val videoSelector = findViewById<RtkVideoDeviceSelector>(R.id.videoSelector)
videoSelector.activate(meeting)

役に立ちましたか?