A complete participant tile view that displays video, avatar, name tag, and pin indicator.
Combines RtkVideoView, RtkAvatarView, and RtkMeetingNameTag into a single composable view.
| 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 |
| 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) |
| 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 |
import RealtimeKitUI
let tileView = RtkParticipantTileView(
rtkClient: rtkClient,
participant: participant,
isForLocalUser: false
)
view.addSubview(tileView)import RealtimeKitUI
let localTile = RtkParticipantTileView(
rtkClient: rtkClient,
participant: localParticipant,
isForLocalUser: true,
showScreenShareVideoView: true
)
view.addSubview(localTile)