The raw accelerometer, and nothing else: an Accelerometer interface with an isAvailable gate and a cold observe(): Flow<AccelerometerSample> that registers the platform sensor on collection and releases it when collection ends. Pick this module if your shared Kotlin code wants raw acceleration in m/s² on both platforms without writing the SensorManager dance on Android and the CMMotionManager g-to-m/s² conversion on iOS — it interprets nothing, declares no permission or feature of its own, and ...

Artifacts using KMPToolkit Accelerometer (1)
Sort by:Popular▼

Test fixtures for kmptoolkit-accelerometer: ScriptedAccelerometer, an Accelerometer double that replays a scripted list of AccelerometerSample values to every collector and counts registrations, so a test can assert that code which stops collecting ...
Last Release on Oct 8, 2026
  • Prev
  • 1
  • Next