一个控制栏按钮,用于打开包含聊天、投票和参与者列表等会议操作的底部工作表(bottom sheet)菜单。
| 参数 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
meeting |
RealtimeKitClient |
✅ | - | RealtimeKit 客户端实例 |
presentingViewController |
UIViewController |
✅ | - | 用于呈现底部工作表的视图控制器 |
settingViewControllerCompletion |
(() -> Void)? |
❌ | nil |
设置视图控制器关闭时调用的闭包 |
| 方法 | 返回类型 | 描述 |
|---|---|---|
hideBottomSheet() |
Void |
以编程方式关闭底部工作表菜单 |
import RealtimeKitUI
let moreButton = RtkMoreButtonControlBar(
meeting: rtkClient,
presentingViewController: self
)
view.addSubview(moreButton)import RealtimeKitUI
let moreButton = RtkMoreButtonControlBar(
meeting: rtkClient,
presentingViewController: self,
settingViewControllerCompletion: {
print("Settings dismissed")
}
)
view.addSubview(moreButton)