AccelerometerReading AccelerometerReading AccelerometerReading AccelerometerReading Class

Represents an accelerometer reading.

Syntax

Declaration

public sealed class AccelerometerReadingpublic sealed class AccelerometerReadingPublic NotInheritable Class AccelerometerReadingpublic sealed 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 doublepublic double AccelerationX { get; }

    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 doublepublic double AccelerationY { get; }

    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 doublepublic double AccelerationZ { get; }

    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 DateTimeOffset Timestamp { get; }Public ReadOnly Property Timestamp As DateTimeOffsetpublic DateTime Timestamp { get; }

    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.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.Devices.Sensors.dll