Skip to content

RtkNameTagView

Displays a participant's name and an audio indicator.

Methods

MethodParametersDescription
activateparticipant: RtkMeetingParticipant, isScreenShare: BooleanBind the name tag to a participant
setMaxLengthlength: IntSet the maximum length for the displayed name
refresh-Refresh the name and audio indicator
applyDesignTokensdesignTokens: RtkDesignTokensApply custom design tokens for theming

Usage Examples

Basic Usage

<com.cloudflare.realtimekit.ui.view.nametagview.RtkNameTagView
android:id="@+id/rtk_name_tag"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

With Methods

Kotlin
val nameTag = findViewById<RtkNameTagView>(R.id.rtk_name_tag)
nameTag.activate(participant)