GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for DeviceMotionEvent.

Developer library 6

DeviceMotionEvent

Device Orientation Events The **`DeviceMotionEvent`** interface of the provides web developers with information about the speed of changes for the device's position and orientation. > [!WARNING] > Currently, Firefox and Chrome do not handle the coordinates the same way. Take care about this while using them. ## Constructor - DeviceMotionEvent() - : Creates a new `DeviceMotionEvent`. ## Instance properties

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent

DeviceMotionEvent: rotationRate property

Device Orientation Events The **`rotationRate`** read-only property of the DeviceMotionEvent interface returns the rate at which the device is rotating around each of its axes in degrees per second. > [!NOTE] > If the hardware isn't capable of providing this > information, this property returns `null`. ## Value The `rotationRate` property is a read-only object describing the rotation rates of the device around ea

DeviceMotionEvent: DeviceMotionEvent() constructor

Device Orientation Events The **`DeviceMotionEvent()`** constructor creates a new DeviceMotionEvent object. ## Syntax ```js-nolint new DeviceMotionEvent(type) new DeviceMotionEvent(type, options) ``` ### Parameters - `type` - : A string with the name of the event. It is case-sensitive and browsers always set it to `devicemotion`. - `options` - : An object that, _in addition of the properties defined in

DeviceMotionEvent: requestPermission() static method

Device Orientation Events The **`requestPermission()`** static method of the DeviceMotionEvent interface requests the user's permission to access device motion data from the accelerometer and gyroscope sensors. This method requires transient activation, meaning that it must be triggered by a UI event such as a button click. ## Syntax ```js-nolint DeviceMotionEvent.requestPermission() ``` ### Parameters None. ##

DeviceMotionEvent: interval property

Device Orientation Events The **`interval`** read-only property of the DeviceMotionEvent interface returns the interval, in milliseconds, at which data is obtained from the underlying hardware. You can use this to determine the granularity of motion events. ## Value A number representing the interval of time, in milliseconds. ## Specifications ## Browser compatibility ## See also - Detecting device orienta

DeviceMotionEvent: acceleration property

Device Orientation Events The **`acceleration`** read-only property of the DeviceMotionEvent interface returns the acceleration recorded by the device, in [meters per second squared (m/s²)](https://en.wikipedia.org/wiki/Meter_per_second_squared). This value does not include the effect of the gravitational force, in contrast to DeviceMotionEvent.accelerationIncludingGravity. > [!NOTE] > If the hardware does not know

JSON results · Services directory