Skip to content

RtkNameTagView

Last updated View as MarkdownAgent setup

Displays a participant's name and an audio indicator.

Methods

Method Parameters Description
activate participant: RtkMeetingParticipant, isScreenShare: Boolean Bind the name tag to a participant
setMaxLength length: Int Set the maximum length for the displayed name
refresh - Refresh the name and audio indicator
applyDesignTokens designTokens: RtkDesignTokens Apply 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

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

Was this helpful?