Skip to content

MotionChangeEvent

Motion-state change delivered to BackgroundGeolocation.onMotionChange.

The SDK fires this event each time it transitions between the moving and stationary states. A location is always recorded at the moment of transition.


Members

isMoving

true when the SDK has transitioned to the moving state; false when it has transitioned to the stationary state.

location

Location recorded at the moment the motion-state transition was detected.