A control bar button that ends or leaves the meeting.
Optionally displays a confirmation dialog before ending the meeting.
Parameter Type Required Default Description meetingRealtimeKitClient✅ - The RealtimeKit client instance alertViewControllerUIViewController✅ - View controller used to present the confirmation alert onClick((RtkEndMeetingControlBarButton, RtkLeaveDialog.RtkLeaveDialogAlertButtonType) -> Void)?❌ nilClosure called after the user confirms leaving or ending the meeting, receiving the button and the selected action type appearanceRtkControlBarButtonAppearance❌ - Appearance configuration for the button
Property Type Required Default Description shouldShowAlertOnClickBool❌ trueWhether to show a confirmation alert before ending the meeting
let endButton = RtkEndMeetingControlBarButton (
alertViewController : self
view. addSubview ( endButton )
Without confirmation dialog
let endButton = RtkEndMeetingControlBarButton (
alertViewController : self ,
onClick : { button, actionType in
print ( "Action: \( actionType ) " )
endButton. shouldShowAlertOnClick = false
view. addSubview ( endButton )