DeviceMotionEventAcceleration Class

An acceleration of a DeviceMotionEvent (https://w3c.github.io/deviceorientation/#devicemotioneventacceleration), in m/s².

public sealed class DeviceMotionEventAcceleration

Properties

NameDescription
XGets the acceleration along the X axis, or null.
YGets the acceleration along the Y axis, or null.
ZGets the acceleration along the Z axis, or null.

Gets the acceleration along the X axis, or null.

public double? X { get; }

Gets the acceleration along the Y axis, or null.

public double? Y { get; }

Gets the acceleration along the Z axis, or null.

public double? Z { get; }