A name tag view that displays the participant name and a microphone status icon. Automatically updates when the participant's audio state changes.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
meeting |
RealtimeKitClient |
✅ | - | The RealtimeKit client instance |
participant |
RtkMeetingParticipant |
✅ | - | The participant whose name and mic status to display |
appearance |
RtkNameTagAppearance |
❌ | - | Appearance configuration for the name tag |
| Method | Return Type | Description |
|---|---|---|
set(participant:) |
Void |
Updates the name tag to display a different participant |
refresh() |
Void |
Refreshes the name and microphone status display |
import RealtimeKitUI
let nameTag = RtkMeetingNameTag(
meeting: rtkClient,
participant: participant
)
view.addSubview(nameTag)import RealtimeKitUI
let nameTag = RtkMeetingNameTag(
meeting: rtkClient,
participant: participant
)
view.addSubview(nameTag)
// Switch to a different participant
nameTag.set(participant: newParticipant)
nameTag.refresh()