Skip to content

RtkVideoDeviceSelector

Last updated View as MarkdownAgent setup

A video device selector component which can be used to select video devices.

Properties

Property Type Required Default Description
rtk_ds_label string Video 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.RtkVideoDeviceSelector
    android:id="@+id/videoSelector"
    app:rtk_ds_label="Camera"
    android:layout_width="0dp"
    android:layout_height="wrap_content" />

With Methods

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

Was this helpful?