| pcx_content_type |
reference |
| title |
RtkJoinButton |
| description |
API reference for RtkJoinButton component (iOS Library) |
| products |
|
A pre-configured button that joins the meeting.
Validates the participant name before joining.
| Parameter |
Type |
Required |
Default |
Description |
meeting |
RealtimeKitClient |
✅ |
- |
The RealtimeKit client instance |
onClick |
((RtkJoinButton, Bool) -> Void)? |
❌ |
nil |
Closure called when the button is tapped. The Bool parameter indicates whether the join was successful. |
appearance |
RtkButtonAppearance |
❌ |
- |
Appearance configuration for the button |
import RealtimeKitUI
let joinButton = RtkJoinButton(meeting: rtkClient)
view.addSubview(joinButton)
import RealtimeKitUI
let joinButton = RtkJoinButton(
meeting: rtkClient,
onClick: { button, success in
if success {
print("Joined meeting")
} else {
print("Join failed")
}
}
)
view.addSubview(joinButton)