用于网络研讨会舞台操作的控制栏按钮。 根据当前舞台状态,支持请求加入、加入、离开和取消舞台请求等操作。
| 参数 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
rtkClient |
RealtimeKitClient |
✅ | - | RealtimeKit 客户端实例 |
buttonState |
WebinarStageStatus |
✅ | - | 决定按钮操作的当前舞台状态 |
presentingViewController |
UIViewController |
✅ | - | 用于呈现确认对话框的视图控制器 |
| 属性 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
dataSource |
RtkStageActionButtonControlBarDataSource? |
❌ | nil |
用于自定义舞台操作按钮行为的数据源 |
import RealtimeKitUI
let stageButton = RtkStageActionButtonControlBar(
rtkClient: rtkClient,
buttonState: .requestToJoinStage,
presentingViewController: self
)
view.addSubview(stageButton)