Skip to content

RtkPluginScreenShareTabButton

Last updated View as MarkdownAgent setup

A tab button used in the plugin and screen share tab selector. Represents a single tab in the RtkActiveTabSelectorView.

Initializer parameters

Parameter Type Required Default Description
image RtkImage? - The icon image for the tab button
title String "" The title text for the tab button
id String "" A unique identifier for the tab button
appearance RtkPluginScreenShareTabButtonAppearance - Appearance configuration for the tab button

Usage Examples

Basic Usage

import RealtimeKitUI

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

With identifier

import RealtimeKitUI

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

Was this helpful?