Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

RtkParticipantCountView

最終更新 Markdown で表示Agent セットアップ

現在の参加者数を表示するラベルです。 参加者がミーティングに入退室すると自動で更新されます。

イニシャライザーのパラメーター

パラメーター 必須 デフォルト 説明
meeting RealtimeKitClient - 進行中のミーティング用の RealtimeKit クライアントインスタンス
appearance RtkTextAppearance AppTheme.shared.participantCountAppearance フォントと色のテキスト外観設定

使用例

基本的な使い方

import RealtimeKitUI

let countView = RtkParticipantCountView(meeting: rtkClient)
view.addSubview(countView)

カスタム外観を指定する場合

import RealtimeKitUI

let appearance = RtkTextAppearance(
    font: UIFont.systemFont(ofSize: 14, weight: .medium),
    textColor: .lightGray
)
let countView = RtkParticipantCountView(
    meeting: rtkClient,
    appearance: appearance
)
view.addSubview(countView)

役に立ちましたか?