A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://Tarektouati.github.io/vue-use-web/functions/device-motion.html below:

Website Navigation


Device Motion | useWeb

# Device Motion

The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation.

# State

The useDeviceMotion function exposes the following reactive state:

State Type Description acceleration object An object giving the acceleration of the device on the three axis X, Y and Z. accelerationIncludingGravity object An object giving the acceleration of the device on the three axis X, Y and Z with the effect of gravity. rotationRate object An object giving the rate of change of the device's orientation on the three orientation axis alpha, beta and gamma. interval Number A number representing the interval of time, in milliseconds, at which data is obtained from the device..

You can find more information about the state on the MDN .

# Config

useDeviceMotion function takes an options object as an optional parameter.

Config Type Description throttleMs Number The debounce rate of the updates to the state. # Example

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4