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 DeviceOrientationEvent.

Developer library 6

DeviceMotionEvent

tion.x} m/s2`); }); ``` ## Specifications ## Browser compatibility ## See also - Detecting device orientation - Orientation and motion data explained - DeviceOrientationEvent - deviceorientation event - deviceorientationabsolute event - devicemotion event - Accelerometer - LinearAccelerationSensor

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

DeviceMotionEvent: requestPermission() static method

onsole.log(`Acceleration Z: ${event.acceleration.z}`); }); } }); ``` ## Specifications ## Browser compatibility ## See also - DeviceMotionEvent - DeviceOrientationEvent.requestPermission() - devicemotion event - Detecting device orientation

DeviceOrientationEvent

Device Orientation Events The **`DeviceOrientationEvent`** interface of the provides web developers with information from the physical orientation of the device running the web page. ## Constructor - DeviceOrientationEvent.DeviceOrientationEvent() - : Creates a new `DeviceOrientationEvent`. ## Instance properties - DeviceOrientationEvent.absolute - : A boolean that indicates whether or not the device is

DeviceOrientationEvent: absolute property

Device Orientation Events The **`absolute`** read-only property of the DeviceOrientationEvent interface indicates whether or not the device is providing orientation data absolutely (that is, in reference to the Earth's coordinate frame) or using some arbitrary frame determined by the device. See [Orientation and motion data explained](/docs/Web/API/Device_orientation_events/Orientation_and_motion_data_explained) for

DeviceOrientationEvent: gamma property

Device Orientation Events The **`gamma`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Y axis; that is, the number of degrees, ranged between `-90` and `90`, by which the device is tilted left or right. See [Orientation and motion data explained](/docs/Web/API/Device_orientation_events/Orientation_and_motion_data_explained) for details. ## Value A number.

DeviceOrientationEvent: DeviceOrientationEvent() constructor

Device Orientation Events The **`DeviceOrientationEvent()`** constructor creates a new DeviceOrientationEvent object. ## Syntax ```js-nolint new DeviceOrientationEvent(type) new DeviceOrientationEvent(type, options) ``` ### Parameters - `type` - : A string with the name of the event. It is case-sensitive and browsers set it to `deviceorientation` or `deviceorientationabsolute`. In the latter case, `opt

JSON results · Services directory