DeviceAcceleration Property
Collapse the table of content
Expand the table of content

MotionReading.DeviceAcceleration Property

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

Gets the linear acceleration of the device, in gravitational units.

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

public Vector3 DeviceAcceleration { get; internal set; }

Property Value

Type: Vector3
The linear acceleration of the device.

The raw data readings from the Accelerometer class include the force of gravity on the device in addition to forces caused by the user moving the device. The DeviceAcceleration property gives the acceleration of the device without the inclusion of gravity.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft