插件和屏幕共享选项卡选择器中使用的选项卡按钮。
代表 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"
)