跳转到内容
搜索文档

RtkMoreButtonControlBar

最后更新 查看 MarkdownAgent 设置

一个控制栏按钮,用于打开包含聊天、投票和参与者列表等会议操作的底部工作表(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)

这篇文档对您有帮助吗?