Skip to content

RtkJoinButton

A pre-configured button that joins the meeting. Validates the participant name before joining.

Initializer parameters

ParameterTypeRequiredDefaultDescription
meetingRealtimeKitClient-The RealtimeKit client instance
onClick((RtkJoinButton, Bool) -> Void)?nilClosure called when the button is tapped. The Bool parameter indicates whether the join was successful.
appearanceRtkButtonAppearance-Appearance configuration for the button

Usage Examples

Basic Usage

Swift
import RealtimeKitUI
let joinButton = RtkJoinButton(meeting: rtkClient)
view.addSubview(joinButton)

With tap handler

Swift
import RealtimeKitUI
let joinButton = RtkJoinButton(
meeting: rtkClient,
onClick: { button, success in
if success {
print("Joined meeting")
} else {
print("Join failed")
}
}
)
view.addSubview(joinButton)