RtkMoreButtonControlBar
目录
A control bar button that opens a bottom sheet menu with meeting actions such as chat, polls, and participant list.
Initializer parameters
| Parameter |
Type |
Required |
Default |
Description |
meeting |
RealtimeKitClient |
✅ |
- |
The RealtimeKit client instance |
presentingViewController |
UIViewController |
✅ |
- |
View controller used to present the bottom sheet |
settingViewControllerCompletion |
(() -> Void)? |
❌ |
nil |
Closure called when the settings view controller dismisses |
Methods
| Method |
Return Type |
Description |
hideBottomSheet() |
Void |
Programmatically dismisses the bottom sheet menu |
Usage Examples
Basic Usage
import RealtimeKitUI
let moreButton = RtkMoreButtonControlBar(
meeting: rtkClient,
presentingViewController: self
)
view.addSubview(moreButton)
With settings completion
import RealtimeKitUI
let moreButton = RtkMoreButtonControlBar(
meeting: rtkClient,
presentingViewController: self,
settingViewControllerCompletion: {
print("Settings dismissed")
}
)
view.addSubview(moreButton)