A control bar button that toggles the local microphone on and off. Checks microphone permissions before toggling.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
meeting |
RealtimeKitClient |
✅ | - | The RealtimeKit client instance |
onClick |
((RtkAudioButtonControlBar) -> Void)? |
❌ | nil |
Closure called when the button is tapped |
appearance |
RtkControlBarButtonAppearance |
❌ | - | Appearance configuration for the button |
import RealtimeKitUI
let audioButton = RtkAudioButtonControlBar(meeting: rtkClient)
view.addSubview(audioButton)import RealtimeKitUI
let audioButton = RtkAudioButtonControlBar(
meeting: rtkClient,
onClick: { button in
print("Audio toggled")
}
)
view.addSubview(audioButton)