Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.75 KB

File metadata and controls

52 lines (40 loc) · 1.75 KB
pcx_content_type reference
title RtkMoreButtonControlBar
description API reference for RtkMoreButtonControlBar component (iOS Library)
products
realtime

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)