Skip to content

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

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"
)

役に立ちましたか?