desiredAccuracy property
Specify the desired-accuracy of the geolocation system.
| Name | Location Providers | Description |
|---|---|---|
| DesiredAccuracy.navigation | (iOS only) GPS + Wifi + Cellular | Highest power; highest accuracy |
| DesiredAccuracy.high | GPS + Wifi + Cellular | Highest power; highest accuracy |
| DesiredAccuracy.medium | Wifi + Cellular | Medium power; Medium accuracy; |
| DesiredAccuracy.low | Wifi (low power) + Cellular | Lower power; No GPS |
| DesiredAccuracy.veryLow | Cellular only | Lowest power; lowest accuracy |
| DesiredAccuracy.lowest | (iOS only) Lowest power; lowest accuracy |
Note: Only DesiredAccuracy.high uses GPS. speed, heading and altitude are available only from GPS.
Example
BackgroundGeoloction.ready(Config(
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH
));
For platform-specific information about location accuracy, see the corresponding API docs:
Implementation
final DesiredAccuracy? desiredAccuracy;