Skip to main content

RtkEndMeetingControlBarButton

Overview​

This button is use to implement the action for leaving the meeting. You can add functionality to leave the meeting inside the app by using this button.

Topics:​

Creating a End meeting button which you mostly add inside Control Bar​

init(meeting: RealtimeKitClient, alertViewController: UIViewController , onClick:((RtkEndMeetingControlBarButton, RtkLeaveDialog.RtkLeaveDialogAlertButtonType)->Void)? = nil, appearance: RtkControlBarButtonAppearance = AppTheme.shared.controlBarButtonAppearance)

Creates a RtkEndMeetingControlBarButton with multiple parameters.

Parameters:​

Required
meeting: Current ongoing meeting object.
alertViewController: UIViewController object on which you want to present the UIAlertViewController. UIAlertView shown as final confirmation to leave meeting from the user.
Optional
onClick: Closure that you passed to get callback when user take action on UIAlertView appearance: Any type which conforms to protocol "RtkControlBarButtonAppearance"

Override the onClick action.​

open func onClick(button: RtkEndMeetingControlBarButton)

You can override this method inside the subclass of RtkEndMeetingControlBarButton to customize the functionality when user presses this button.