Skip to content

RtkAudioDeviceSelector

Last updated View as MarkdownAgent setup

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

Properties

Property Type Required Default Description
rtk_ds_label string Audio Custom label text

Methods

Method Parameters Description
activate meeting: RealtimeKitClient Bind the selector to the meeting state
disableLabel - Disable the label text above the dropdown
applyDesignTokens designTokens: RtkDesignTokens Apply 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

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

Was this helpful?