DeviceMotionEvent
DeviceMotionEvent is a web platform interface that provides access to the device’s motion sensors, delivering data about acceleration and rotation through motion events. On supported devices, web pages can listen for these events by registering a handler for the devicemotion event on the window.
The DeviceMotionEvent interface exposes several properties. Acceleration contains the rate of change of velocity along the
Usage typically involves adding an event listener, for example. When a devicemotion event fires, developers can
Permissions and privacy considerations vary by platform. On iOS devices running iOS 13 and later, access to
Applications include motion-aware games, fitness or activity tracking, and user interface adaptations based on movement. DeviceMotionEvent