api/internal/gamification/device/game_motion_source library

Classes

GameMotionSource
The bridge motion backend: gyroscope and accelerometer streaming, each at its own requested rate (clamped to 1..60 Hz). Values pass through in SI units. Delivery suspends on pause and resumes on resume; stopAll ends every stream. Never throws.
PlatformGameMotionSource
GameMotionSource over the plugin channels. sensors are the names the device facts reported; samples arrive on digia_engage/game_motion.

Constants

accelerometerName → const String
gyroscopeName → const String
Sensor names of the web view contract.

Typedefs

GameMotionSample = void Function(String sensor, double x, double y, double z, int tMs)
One motion sample from the platform.