setPauseLocationUpdatesAutomatically method
- bool allowed
override
On iOS devices this controls automatic pausing of location updates e.g.
for improving device's battery life at times when
location data is unlikely to change.
By default automatic pausing of location updates is allowed.
Set allowed to true to allow automatic pausing of location updates, or false to disable them.
When calling this method then LocationEngineStatus.ok is returned.
On Android devices this is not supported and LocationEngineStatus.notSupported is returned.
Implementation
LocationEngineStatus setPauseLocationUpdatesAutomatically(bool allowed) {
if (Platform.isIOS) {
return _location.setPauseLocationUpdatesAutomatically(allowed);
}
return LocationEngineStatus.notSupported;
}