Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

RtkMoreButtonControlBar

最終更新 Markdown で表示Agent セットアップ

チャット、投票、参加者一覧など、ミーティング操作のボトムシートメニューを開くコントロールバーボタンです。

イニシャライザーのパラメーター

パラメーター 型 必須 デフォルト 説明
meeting RealtimeKitClient ✅ - RealtimeKit クライアントのインスタンス
presentingViewController UIViewController ✅ - ボトムシートの表示に使うビューコントローラー
settingViewControllerCompletion (() -> Void)? ❌ nil 設定ビューコントローラーが閉じたときに呼ばれるクロージャ

メソッド

メソッド 戻り値の型 説明
hideBottomSheet() Void プログラムからボトムシートメニューを閉じます

使用例

基本的な使い方

import RealtimeKitUI

let moreButton = RtkMoreButtonControlBar(
    meeting: rtkClient,
    presentingViewController: self
)
view.addSubview(moreButton)

設定の完了ハンドラーを指定する場合

import RealtimeKitUI

let moreButton = RtkMoreButtonControlBar(
    meeting: rtkClient,
    presentingViewController: self,
    settingViewControllerCompletion: {
        print("Settings dismissed")
    }
)
view.addSubview(moreButton)

役に立ちましたか?