Skip to content

RtkAudioDeviceSelector

An audio device selector component which can be used to select audio devices.

Properties

PropertyTypeRequiredDefaultDescription
rtk_ds_labelstringAudioCustom label text

Methods

MethodParametersDescription
activatemeeting: RealtimeKitClientBind the selector to the meeting state
disableLabel-Disable the label text above the dropdown
applyDesignTokensdesignTokens: RtkDesignTokensApply custom design tokens for theming

Usage Examples

Basic Usage

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

With Methods

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