AccelerometerReading AccelerometerReading AccelerometerReading AccelerometerReading Class

Represents an accelerometer reading.

Syntax

Declaration

public sealed class AccelerometerReadingpublic sealed class AccelerometerReadingPublic NotInheritable Class AccelerometerReading

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 summary

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

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

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

Gets the time at which the sensor reported the reading.

Properties

  • AccelerationX
    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

    Property Value

    • double
      double
      double
      double

      The x-axis acceleration in g's.

  • AccelerationY
    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

    Property Value

    • double
      double
      double
      double

      The y-axis acceleration in g's.

  • AccelerationZ
    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

    Property Value

    • double
      double
      double
      double

      The g-force acceleration along the z-axis.

  • Timestamp
    Timestamp
    Timestamp
    Timestamp

    Gets the time at which the sensor reported the reading.

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

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.Devices.Sensors.dll