isMoving property

bool? isMoving
getter/setter pair

Configure the initial tracking-state after BackgroundGeolocation.start is called.

The plugin will immediately enter the tracking-state, by-passing the stationary state. If the device is not currently moving, the stop-detection system will still engage. After stopTimeout minutes without movement, the plugin will enter the stationary state, as usual.

Example

State state = await BackgroundGeolocation.ready(Config(
  isMoving: true
));

if (!state.enabled) {
  BackgroundGeolocation.start();
}
// Location-services are now on and the plugin is recording a location
// each [distanceFilter] meters.

Implementation

bool? isMoving;