Skip to content

RtkMicToggleButton

Last updated View as MarkdownAgent setup

A button which toggles the local user's microphone. It automatically listens to self audio events to update its state.

Methods

Method Parameters Description
activate meeting: RealtimeKitClient Bind the button to the meeting state
deactivate - Unbind the button and remove event listeners

Usage Examples

Basic Usage

<com.cloudflare.realtimekit.ui.view.controlbarbuttons.RtkMicToggleButton
    android:id="@+id/btn_mic_toggle"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />

With Methods

val micToggleButton = findViewById<RtkMicToggleButton>(R.id.btn_mic_toggle)
micToggleButton.activate(meeting)

Was this helpful?