Skip to content

RtkAvatarView

Last updated View as Markdown Agent setup

Avatar component which renders a participant's profile picture or their initials.

Methods

Method Parameters Description
activate participant: RtkMeetingParticipant Bind the avatar to a participant
refresh - Refresh the avatar based on the participant's name
applyDesignTokens designTokens: RtkDesignTokens Apply custom design tokens for theming

Usage Examples

Basic Usage

<com.cloudflare.realtimekit.ui.view.avatarview.RtkAvatarView
    android:id="@+id/rtk_avatar"
    android:layout_width="48dp"
    android:layout_height="48dp" />

With Methods

val avatar = findViewById<RtkAvatarView>(R.id.rtk_avatar)
avatar.activate(participant)

Was this helpful?