This topic has not yet been rated - Rate this topic

AccelerometerReading class

Represents an accelerometer reading.

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

DualApiPartitionAttribute()
MarshalingBehaviorAttribute(Agile)
VersionAttribute(NTDDI_WIN8)

Members

The AccelerometerReading class has these types of members:

Methods

The AccelerometerReading class inherits methods from the Object class (C#/VB/C++).

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

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

 

 

Build date: 2/25/2013

© 2013 Microsoft. All rights reserved.