← Cloudflare Realtime / realtime / realtimekit / ui-kit / api-reference / ios
RtkParticipantCountView
Popisek, který zobrazuje aktuální počet účastníků. Automaticky se aktualizuje, když se účastníci připojí ke schůzce nebo ji opustí.
Parametry inicializátoru
| Parametr | Typ | Povinné | Výchozí | Popis |
|---|---|---|---|---|
meeting |
RealtimeKitClient |
✅ | - | Instance klienta RealtimeKit pro aktivní schůzku |
appearance |
RtkTextAppearance |
❌ | AppTheme.shared.participantCountAppearance |
Konfigurace vzhledu textu pro písmo a barvu |
Příklady použití
Základní použití
import RealtimeKitUI
let countView = RtkParticipantCountView(meeting: rtkClient)
view.addSubview(countView)S vlastním vzhledem
import RealtimeKitUI
let appearance = RtkTextAppearance(
font: UIFont.systemFont(ofSize: 14, weight: .medium),
textColor: .lightGray
)
let countView = RtkParticipantCountView(
meeting: rtkClient,
appearance: appearance
)
view.addSubview(countView)