Skip to main content
Version: Dev (main)

PeerSpec class

An immutable snapshot of one peer, taken when it was read or delivered; safe to keep. It does not change: read a new one, or watch PeerControl.SubscribeUpdates.

Namespace: Quaternar.Qaros · Assembly: Quaternar.Qaros.dll

public sealed class PeerSpec

Properties​

MemberDescription
Id
DisplayName
AppVersion
AppCustomPeerInfoApplication-defined metadata the peer presented itself with.
AppStateDeprecated: read PeerSpec.Presence. Computed from it: PeerPresence.Offline and PeerPresence.Leaving read AppState.ShuttingDown, PeerPresence.Retired reads AppState.Retired, and any other peer reads what it claimed, which is AppState.Running from the moment it joins.
PresenceWhether the peer is here. A target app is rendered for while it PeerSpec.IsReachable; whether it is ready for a stream is negotiated by the render sender, not announced here.
IsReachableWhether the peer can be rendered for, waited for or counted: its PeerSpec.Presence is PeerPresence.Online, or PeerPresence.Unknown on a hub that has not reconciled it. False once it is offline, leaving or retired.
VersionId
RoomTagThe physical room the peer is in, to group peers in multi-room deployments.
RoleWhat the peer is in the streaming graph. A source application renders for the peers whose role is PeerRole.Target; this process is always PeerRole.Source.
IsTargetAppWhether this peer shows rendered content (a headset's serving app, a Visualizer receiver, a camera's receiver slot): PeerSpec.Role is PeerRole.Target. A source application decides itself which target apps it renders for.
CategoryWhat kind of device the peer is; the fallback for a PeerSpec.DeviceId and PeerSpec.DeviceFamily the application does not know.
DeviceIdOpen string naming the exact device or app ("MetaQuest3", "HoloLens2", "Visualizer"). It can change while the peer runs, once its serving app knows the model.
DeviceFamilyOpen string naming the device family ("MetaQuest"); empty when there is none.
DeviceNameHuman name of the device ("Meta Quest 3"); empty when nothing better than the id is known.

Id​

public PeerId Id { get; }

Value: PeerId

DisplayName​

public string DisplayName { get; }

Value: string

AppVersion​

public string AppVersion { get; }

Value: string

AppCustomPeerInfo​

Application-defined metadata the peer presented itself with.

public string AppCustomPeerInfo { get; }

Value: string

AppState​

Deprecated: read PeerSpec.Presence. Computed from it: PeerPresence.Offline and PeerPresence.Leaving read AppState.ShuttingDown, PeerPresence.Retired reads AppState.Retired, and any other peer reads what it claimed, which is AppState.Running from the moment it joins.

[Obsolete("Read Presence instead. AppState.Running only means the peer joined.")]
public AppState AppState { get; }

Value: AppState

Presence​

Whether the peer is here. A target app is rendered for while it PeerSpec.IsReachable; whether it is ready for a stream is negotiated by the render sender, not announced here.

public PeerPresence Presence { get; }

Value: PeerPresence

IsReachable​

Whether the peer can be rendered for, waited for or counted: its PeerSpec.Presence is PeerPresence.Online, or PeerPresence.Unknown on a hub that has not reconciled it. False once it is offline, leaving or retired.

public bool IsReachable { get; }

Value: bool

VersionId​

public string VersionId { get; }

Value: string

RoomTag​

The physical room the peer is in, to group peers in multi-room deployments.

public string RoomTag { get; }

Value: string

Role​

What the peer is in the streaming graph. A source application renders for the peers whose role is PeerRole.Target; this process is always PeerRole.Source.

public PeerRole Role { get; }

Value: PeerRole

IsTargetApp​

Whether this peer shows rendered content (a headset's serving app, a Visualizer receiver, a camera's receiver slot): PeerSpec.Role is PeerRole.Target. A source application decides itself which target apps it renders for.

public bool IsTargetApp { get; }

Value: bool

Category​

What kind of device the peer is; the fallback for a PeerSpec.DeviceId and PeerSpec.DeviceFamily the application does not know.

public DeviceCategory Category { get; }

Value: DeviceCategory

DeviceId​

Open string naming the exact device or app ("MetaQuest3", "HoloLens2", "Visualizer"). It can change while the peer runs, once its serving app knows the model.

public string DeviceId { get; }

Value: string

DeviceFamily​

Open string naming the device family ("MetaQuest"); empty when there is none.

public string DeviceFamily { get; }

Value: string

DeviceName​

Human name of the device ("Meta Quest 3"); empty when nothing better than the id is known.

public string DeviceName { get; }

Value: string