AFMotionMonitor

Monitors device motion state (MOVING vs. STATIONARY) using Activity Recognition Transition API.

It requests activity transition updates and exposes the current motion state as a StateFlow. It relies on AFMotionBroadcastReceiver to receive and forward transition events. It also checks for necessary permissions before starting.

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun start()
Link copied to clipboard
fun stop()