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)