Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AccelerometerReading class

Represents an accelerometer reading.

Syntax


public ref class AccelerometerReading sealed 

Members

The AccelerometerReading class has these types of members:

Properties

The AccelerometerReading class has these properties.

PropertyAccess typeDescription

AccelerationX

Read-onlyGets the g-force acceleration along the x-axis.

AccelerationY

Read-onlyGets the g-force acceleration along the y-axis.

AccelerationZ

Read-onlyGets the g-force acceleration along the z-axis.

Timestamp

Read-onlyGets the time at which the sensor reported the reading.

 

Remarks

This object is accessed when you invoke the GetCurrentReading method; and, it is accessed when you retrieve the Reading property of the AccelerometerReadingChangedEventArgs object in the event callback method.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Sensors
Windows::Devices::Sensors [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Devices.Sensors
Windows::Devices::Sensors [C++]

Metadata

Windows.winmd

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

See also

Object
Sensor data and display orientation

 

 

Show:
© 2015 Microsoft