Skip to content

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

RtkPluginScreenShareTabButton

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

プラグインと画面共有のタブセレクターで使うタブボタンです。 RtkActiveTabSelectorView 内の 1 つのタブを表します。

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

パラメーター 必須 デフォルト 説明
image RtkImage? - タブボタンのアイコン画像
title String "" タブボタンのタイトルテキスト
id String "" タブボタンの一意の識別子
appearance RtkPluginScreenShareTabButtonAppearance - タブボタンの外観設定

使用例

基本的な使い方

import RealtimeKitUI

let tabButton = RtkPluginScreenShareTabButton(
    image: RtkImage(image: UIImage(systemName: "square.and.arrow.up")),
    title: "Screen Share"
)

識別子を指定する場合

import RealtimeKitUI

let tabButton = RtkPluginScreenShareTabButton(
    image: RtkImage(image: UIImage(systemName: "pencil.tip")),
    title: "Whiteboard",
    id: "whiteboard-plugin"
)

役に立ちましたか?