DeviceMotionEventInit Class

The initialization dictionary of a DeviceMotionEvent (https://w3c.github.io/deviceorientation/#dictdef-devicemotioneventinit).

public sealed class DeviceMotionEventInit : EventInit
Inheritance
EventInit DeviceMotionEventInit

Constructors

NameDescription
DeviceMotionEventInit()

DeviceMotionEventInit()

public DeviceMotionEventInit()

No documentation is available.

Properties

NameDescription
AccelerationGets the acceleration without the gravity, or null.
AccelerationIncludingGravityGets the acceleration including the gravity, or null.
IntervalGets the interval at which the data is obtained, in milliseconds.
RotationRateGets the rotation rate, or null.

Gets the acceleration without the gravity, or null.

public DeviceMotionEventAccelerationInit? Acceleration { get; init; }

AccelerationIncludingGravity

DeviceOrientationEvents.cs

Gets the acceleration including the gravity, or null.

public DeviceMotionEventAccelerationInit? AccelerationIncludingGravity { get; init; }

Gets the interval at which the data is obtained, in milliseconds.

public double Interval { get; init; }