Skip to content

RtkAvatarView

Last updated View as MarkdownAgent setup

A circular avatar view that displays a participant's profile image or name initials as a fallback.

Initializer parameters

Parameter Type Required Default Description
participant RtkMeetingParticipant - The participant whose avatar to display

Methods

Method Return Type Description
set(participant:) Void Updates the avatar to display a different participant
refresh() Void Refreshes the avatar image or initials
setInitialName(font:) Void Sets the font used for rendering name initials

Usage Examples

Basic Usage

import RealtimeKitUI

let avatarView = RtkAvatarView(participant: participant)
view.addSubview(avatarView)

Update participant

import RealtimeKitUI

let avatarView = RtkAvatarView(participant: participant)
view.addSubview(avatarView)

// Update to a different participant
avatarView.set(participant: newParticipant)
avatarView.refresh()

Was this helpful?