Skip to content

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

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)

役に立ちましたか?