用于群组通话的控制栏,通过麦克风和视频切换按钮扩展了 RtkControlBar。
| 参数 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
meeting |
RealtimeKitClient |
✅ | - | RealtimeKit 客户端实例 |
delegate |
RtkTabBarDelegate? |
✅ | - | 用于处理标签栏交互的委托 |
presentingViewController |
UIViewController |
✅ | - | 用于呈现模态屏幕的视图控制器 |
appearance |
RtkControlBarAppearance |
❌ | RtkControlBarAppearanceModel() |
控制栏的外观配置 |
settingViewControllerCompletion |
(() -> Void)? |
❌ | nil |
设置视图控制器关闭时调用的闭包 |
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)