Skip to main content

RtkAudioButtonControlBar

Overview

Subclass of RtkControlBarButton This button is use to implement the action for mute/unmute microphone for the ongoing meeting.

Topics:

Creating a Audio control button which you mostly add inside Control Bar

init(meeting: RealtimeKitClient, onClick:((RtkAudioButtonControlBar)->Void)? = nil, appearance: RtkControlBarButtonAppearance = AppTheme.shared.controlBarButtonAppearance)

Creates a RtkAudioButtonControlBar with multiple parameters.

Parameters:

Required
meeting: Current ongoing meeting object.
Optional
onClick: Closure that you passed to get callback when user click this button.
appearance: Any type which conforms to protocol RtkControlBarButtonAppearance

Override the onClick action.

open func onClick(button: RtkAudioButtonControlBar)

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