RtkStageActionButtonControlBar
Initializer parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
rtkClient |
RealtimeKitClient |
✅ | - | The RealtimeKit client instance |
buttonState |
WebinarStageStatus |
✅ | - | The current stage status that determines the button action |
presentingViewController |
UIViewController |
✅ | - | View controller used for presenting confirmation dialogs |
Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
dataSource |
RtkStageActionButtonControlBarDataSource? |
❌ | nil |
Data source for customizing stage action button behavior |
Usage Examples
Basic Usage
import RealtimeKitUI
let stageButton = RtkStageActionButtonControlBar(
rtkClient: rtkClient,
buttonState: .requestToJoinStage,
presentingViewController: self
)
view.addSubview(stageButton)
这篇文档对你有帮助吗?
谢谢你的反馈!