跳转到内容
本站为社区维护的非官方中文翻译,与 Cloudflare, Inc. 无关联。本站不提供账户登录,请勿在任何非官方站点输入您的 Cloudflare 账户信息。官方文档:developers.cloudflare.com

RtkPluginScreenShareTabButton

最后更新 查看 MarkdownAgent 设置

插件和屏幕共享选项卡选择器中使用的选项卡按钮。 代表 RtkActiveTabSelectorView 中的单个选项卡。

初始化参数

参数 类型 必填 默认值 描述
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"
)

这篇文档对您有帮助吗?