Skip to content

RtkParticipantTileView

Last updated View as MarkdownAgent setup

A complete participant tile view that displays video, avatar, name tag, and pin indicator. Combines RtkVideoView, RtkAvatarView, and RtkMeetingNameTag into a single composable view.

Initializer parameters

Parameter Type Required Default Description
rtkClient RealtimeKitClient - The RealtimeKit client instance
participant RtkMeetingParticipant - The participant to display
isForLocalUser Bool - Whether this tile represents the local user
showScreenShareVideoView Bool false Whether to show the screen share video instead of camera video

Properties

Property Type Required Default Description
nameTag RtkMeetingNameTag! - - The name tag view displayed on the tile
viewModel VideoPeerViewModel - - The view model managing participant data (read-only)

Methods

Method Return Type Description
pinView(show: Bool) Void Shows or hides the pin indicator on the tile
refreshVideo() Void Refreshes the video renderer for the participant

Usage Examples

Basic Usage

import RealtimeKitUI

let tileView = RtkParticipantTileView(
    rtkClient: rtkClient,
    participant: participant,
    isForLocalUser: false
)
view.addSubview(tileView)

Local user tile with screen share

import RealtimeKitUI

let localTile = RtkParticipantTileView(
    rtkClient: rtkClient,
    participant: localParticipant,
    isForLocalUser: true,
    showScreenShareVideoView: true
)
view.addSubview(localTile)

Was this helpful?