You're reading the Rask v1.0.0 guides.View source
All guides

IDeviceMotion

Accelerometer + gyroscope readings pushed to a callback.

  • Wraps: Device Motion events
  • MDN: Device orientation events
  • Home: Rask.Core.Browser (all hosts)
  • Shape: subscription (pushes to a callback)
  • Availability: Web/Server ✅ · PWA/WASM ✅

Permission-gated on iOS and often blocked; gate on the permission request rather than assuming readings arrive.

See also