SensorState Enumeration

SensorState Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

An enumeration of values for expressing the current state of the accelerometer. The state of a sensor can be obtained using its State property.

Namespace:  Microsoft.Devices.Sensors
Assembly:  Microsoft.Devices.Sensors (in Microsoft.Devices.Sensors.dll)

public enum SensorState
<object property="enumerationValue" .../>

Member nameDescription
NotSupportedThe sensor hardware is unavailable.
ReadyThe sensor is available and resolving data.
InitializingThe sensor is available and initializing.
NoDataThe sensor is unable to obtain data.
NoPermissionsThe caller does not have permission to access the sensor’s data.
DisabledThe sensor is disabled.


If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.


Windows Phone 8, Windows Phone OS 7.1

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft