DeviceMotionEvent
The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. Available only in secure contexts.
interface DeviceMotionEvent extends Event {
readonly acceleration: DeviceMotionEventAcceleration | null;
readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
readonly interval: number;
readonly rotationRate: DeviceMotionEventRotationRate | null;
}var DeviceMotionEvent: {
prototype: DeviceMotionEvent;
new (type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
};