Skip to main content
Version: 0.9.0 (next)

AppVolumeGestureState class

An app volume's gesture modes and who is using them, read with the volume snapshot.

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

public sealed class AppVolumeGestureState

Fields​

DefaultMode​

The mode every volume has and cannot remove, and the one every peer is in until switched.

public const uint DefaultMode = 0

Value: uint

Properties​

MemberDescription
AllowedPeersThe peers whose gestures may move or scale the app; empty means every peer's.
HolderThe one peer currently manipulating the app with a gesture, or null when none holds it.
ModesEvery mode the volume defines, by id, with its rules; always contains AppVolumeGestureState.DefaultMode.
SelectedDefaultModeIdThe mode every peer without its own mode follows.
ActiveModeByPeerThe mode each peer using the volume maps its next gesture through.

AllowedPeers​

The peers whose gestures may move or scale the app; empty means every peer's.

public PeerId[] AllowedPeers { get; }

Value: PeerId[]

Holder​

The one peer currently manipulating the app with a gesture, or null when none holds it.

public PeerId? Holder { get; }

Value: PeerId?

Modes​

Every mode the volume defines, by id, with its rules; always contains AppVolumeGestureState.DefaultMode.

public IReadOnlyDictionary<uint, AppVolumeGestureConfiguration> Modes { get; }

Value: IReadOnlyDictionary<uint, AppVolumeGestureConfiguration>

SelectedDefaultModeId​

The mode every peer without its own mode follows.

public uint SelectedDefaultModeId { get; }

Value: uint

ActiveModeByPeer​

The mode each peer using the volume maps its next gesture through.

public IReadOnlyDictionary<PeerId, uint> ActiveModeByPeer { get; }

Value: IReadOnlyDictionary<PeerId, uint>