Skip to content

RtkStageActionButtonControlBar

Last updated View as MarkdownAgent setup

A control bar button for webinar stage actions. Supports requesting to join, joining, leaving, and canceling stage requests based on the current stage status.

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)

Was this helpful?