Skip to content

RtkAvatarView

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

Methods

MethodParametersDescription
activateparticipant: RtkMeetingParticipantBind the avatar to a participant
refresh-Refresh the avatar based on the participant's name
applyDesignTokensdesignTokens: RtkDesignTokensApply 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

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