Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

RtkClockView

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

経過したミーティング時間を HH:MM:SS 形式で表示するラベルです。 ミーティングが進行中は 1 秒ごとに更新されます。

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

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

使用例

基本的な使い方

import RealtimeKitUI

let clockView = RtkClockView(meeting: rtkClient)
view.addSubview(clockView)

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

import RealtimeKitUI

let appearance = RtkTextAppearance(
    font: UIFont.monospacedDigitSystemFont(ofSize: 14, weight: .regular),
    textColor: .white
)
let clockView = RtkClockView(
    meeting: rtkClient,
    appearance: appearance
)
view.addSubview(clockView)

役に立ちましたか?