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 · Source: AppVolume.cs
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
| Member | Description |
|---|---|
| AllowedPeers | The peers whose gestures may move or scale the app; empty means every peer's. |
| Holder | The one peer currently manipulating the app with a gesture, or null when none holds it. |
| Modes | Every mode the volume defines, by id, with its rules; always contains AppVolumeGestureState.DefaultMode. |
| SelectedDefaultModeId | The mode every peer without its own mode follows. |
| ActiveModeByPeer | The 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>