Accelerometer.State Property

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

Gets the current state of the accelerometer. The value is a member of the SensorState enumeration.

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

Syntax

Public Property State As SensorState
public SensorState State { get; private set; }

Property Value

Type: Microsoft.Devices.Sensors..::.SensorState
Type: SensorState.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

Accelerometer Class

Microsoft.Devices.Sensors Namespace