Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

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)

役に立ちましたか?