| pcx_content_type |
reference |
| title |
RtkAvatarView |
| description |
API reference for RtkAvatarView component (iOS Library) |
| products |
|
A circular avatar view that displays a participant's profile image or name initials as a fallback.
| Parameter |
Type |
Required |
Default |
Description |
participant |
RtkMeetingParticipant |
✅ |
- |
The participant whose avatar to display |
| 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 |
import RealtimeKitUI
let avatarView = RtkAvatarView(participant: participant)
view.addSubview(avatarView)
import RealtimeKitUI
let avatarView = RtkAvatarView(participant: participant)
view.addSubview(avatarView)
// Update to a different participant
avatarView.set(participant: newParticipant)
avatarView.refresh()