Skip to content

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

RtkMeetingControlBar

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

RtkControlBar を拡張し、マイクとビデオのトグルボタンを備えたグループ通話用のコントロールバーです。

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

パラメーター 型 必須 デフォルト 説明
meeting RealtimeKitClient ✅ - RealtimeKit クライアントのインスタンス
delegate RtkTabBarDelegate? ✅ - タブバー操作を処理するデリゲート
presentingViewController UIViewController ✅ - モーダル画面の表示に使う View Controller
appearance RtkControlBarAppearance ❌ RtkControlBarAppearanceModel() コントロールバーの外観設定
settingViewControllerCompletion (() -> Void)? ❌ nil 設定用 View Controller が閉じたときに呼ばれるクロージャ
onLeaveMeetingCompletion (() -> Void)? ❌ nil 参加者がミーティングを退出したときに呼ばれるクロージャ

プロパティ

プロパティ 型 必須 デフォルト 説明
dataSource RtkMeetingControlBarDataSource? ❌ nil コントロールバーのボタンをカスタマイズするためのデータソース

使用例

基本的な使い方

import RealtimeKitUI

let controlBar = RtkMeetingControlBar(
    meeting: rtkClient,
    delegate: self,
    presentingViewController: self
)
view.addSubview(controlBar)

ミーティング退出時のハンドラーを指定する場合

import RealtimeKitUI

let controlBar = RtkMeetingControlBar(
    meeting: rtkClient,
    delegate: self,
    presentingViewController: self,
    onLeaveMeetingCompletion: {
        self.navigationController?.popViewController(animated: true)
    }
)
view.addSubview(controlBar)

役に立ちましたか?