DeviceMotionEventInit Class
The initialization dictionary of a DeviceMotionEvent (https://w3c.github.io/deviceorientation/#dictdef-devicemotioneventinit).
public sealed class DeviceMotionEventInit : EventInit- Inheritance
EventInitDeviceMotionEventInit
Constructors
| Name | Description |
|---|---|
| DeviceMotionEventInit() |
DeviceMotionEventInit()
public DeviceMotionEventInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| Acceleration | Gets the acceleration without the gravity, or null. |
| AccelerationIncludingGravity | Gets the acceleration including the gravity, or null. |
| Interval | Gets the interval at which the data is obtained, in milliseconds. |
| RotationRate | Gets the rotation rate, or null. |
Acceleration
DeviceOrientationEvents.csGets the acceleration without the gravity, or null.
public DeviceMotionEventAccelerationInit? Acceleration { get; init; }AccelerationIncludingGravity
DeviceOrientationEvents.csGets the acceleration including the gravity, or null.
public DeviceMotionEventAccelerationInit? AccelerationIncludingGravity { get; init; }Interval
DeviceOrientationEvents.csGets the interval at which the data is obtained, in milliseconds.
public double Interval { get; init; }Property value
See also
RotationRate
DeviceOrientationEvents.csGets the rotation rate, or null.
public DeviceMotionEventRotationRateInit? RotationRate { get; init; }