A control bar button for webinar stage actions. Supports requesting to join, joining, leaving, and canceling stage requests based on the current stage status.
| 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 |
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
dataSource |
RtkStageActionButtonControlBarDataSource? |
❌ | nil |
Data source for customizing stage action button behavior |
import RealtimeKitUI
let stageButton = RtkStageActionButtonControlBar(
rtkClient: rtkClient,
buttonState: .requestToJoinStage,
presentingViewController: self
)
view.addSubview(stageButton)