Accelerometer​Reading Accelerometer​Reading Accelerometer​Reading Class

Definition

Represents an accelerometer reading.

public sealed class AccelerometerReading : IAccelerometerReadingpublic sealed class AccelerometerReading : IAccelerometerReadingPublic NotInheritable Class AccelerometerReading Implements IAccelerometerReading
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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.

Properties

AccelerationX AccelerationX AccelerationX

Gets the g-force acceleration along the x-axis.

public double AccelerationX { get; }public double AccelerationX { get; }Public ReadOnly Property AccelerationX As double
Value
double double double

The x-axis acceleration in g's.

Attributes

AccelerationY AccelerationY AccelerationY

Gets the g-force acceleration along the y-axis.

public double AccelerationY { get; }public double AccelerationY { get; }Public ReadOnly Property AccelerationY As double
Value
double double double

The y-axis acceleration in g's.

Attributes

AccelerationZ AccelerationZ AccelerationZ

Gets the g-force acceleration along the z-axis.

public double AccelerationZ { get; }public double AccelerationZ { get; }Public ReadOnly Property AccelerationZ As double
Value
double double double

The g-force acceleration along the z-axis.

Attributes

Timestamp Timestamp Timestamp

Gets the time at which the sensor reported the reading.

public DateTime Timestamp { get; }public DateTimeOffset Timestamp { get; }Public ReadOnly Property Timestamp As DateTimeOffset
Value
DateTime DateTime DateTime

The instant in time when the sensor reported the reading.

Attributes

See Also