Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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;
}
;

§Extends

§Properties

§
readonly acceleration: DeviceMotionEventAcceleration | null
[src]
§
readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null
[src]
§
readonly interval: number
[src]
§
readonly rotationRate: DeviceMotionEventRotationRate | null
[src]