SpatialLocatability Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates the lifecycle state of the device's spatial location system. This lets an app know whether it can reason about the device's orientation or its position in the user's surroundings.
public enum class SpatialLocatability
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
enum class SpatialLocatability
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
public enum SpatialLocatability
var value = Windows.Perception.Spatial.SpatialLocatability.unavailable
Public Enum SpatialLocatability
- Inheritance
-
SpatialLocatability
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10586.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v2.0)
|
Fields
Name | Value | Description |
---|---|---|
Unavailable | 0 | The device's spatial location system is not available. |
OrientationOnly | 1 | The device is reporting its orientation, and has not been asked to report its position in the user's surroundings. |
PositionalTrackingActivating | 2 | The device is reporting its orientation, and is preparing to locate its position in the user's surroundings. |
PositionalTrackingActive | 3 | The device is reporting its orientation and position in the user's surroundings. |
PositionalTrackingInhibited | 4 | The device is reporting its orientation, but cannot locate its position in the user's surroundings due to external factors, like lighting conditions. |