SpatialPerceptionAccessStatus 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.
This enumeration describes an app's ability to see the user's surroundings in ways that require the spatialPerception capability. This includes use of either SpatialSurfaceObserver or SpatialAnchorTransferManager.
public enum class SpatialPerceptionAccessStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
enum class SpatialPerceptionAccessStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
public enum SpatialPerceptionAccessStatus
var value = Windows.Perception.Spatial.SpatialPerceptionAccessStatus.unspecified
Public Enum SpatialPerceptionAccessStatus
- Inheritance
-
SpatialPerceptionAccessStatus
- 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 |
---|---|---|
Unspecified | 0 | The user has not yet decided whether the app can use this spatial perception functionality. |
Allowed | 1 | The user has allowed the app to use this spatial perception functionality. |
DeniedByUser | 2 | The user has denied the app use of this spatial perception functionality. |
DeniedBySystem | 3 | The system has denied the app use of this spatial perception functionality. |
Remarks
To use those APIs, call the RequestAccessAsync method on the relevant type first.