Skip to content

RtkMeetingNameTag

Last updated View as MarkdownAgent setup

A name tag view that displays the participant name and a microphone status icon. Automatically updates when the participant's audio state changes.

Initializer parameters

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

Methods

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

Usage Examples

Basic Usage

import RealtimeKitUI

let nameTag = RtkMeetingNameTag(
    meeting: rtkClient,
    participant: participant
)
view.addSubview(nameTag)

Update participant

import RealtimeKitUI

let nameTag = RtkMeetingNameTag(
    meeting: rtkClient,
    participant: participant
)
view.addSubview(nameTag)

// Switch to a different participant
nameTag.set(participant: newParticipant)
nameTag.refresh()

Was this helpful?