Accelerometer.ReadingChanged Event

Note: This API is now obsolete.

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

Occurs when new data arrives from the accelerometer. This method is deprecated in the current release. Applications should use the CurrentValueChanged event of the SensorBase<(Of <(TSensorReading>)>) class instead.

Namespace:  Microsoft.Devices.Sensors
Assembly:  Microsoft.Devices.Sensors (in Microsoft.Devices.Sensors.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

<ObsoleteAttribute("use CurrentValueChanged")> _
Public Event ReadingChanged As EventHandler(Of AccelerometerReadingEventArgs)
[ObsoleteAttribute("use CurrentValueChanged")]
public event EventHandler<AccelerometerReadingEventArgs> ReadingChanged
<object ReadingChanged="EventHandler<AccelerometerReadingEventArgs>" .../>

Version Information

Windows Phone OS

Supported in: 7.0
Obsolete (compiler warning) in 8.1
Obsolete (compiler warning) in 8.0
Obsolete (compiler warning) in 7.1

Platforms

Windows Phone

See Also

Reference

Accelerometer Class

Microsoft.Devices.Sensors Namespace