GeolocationAccuracy enum
The precision of the Location. A lower precision will provide a greater battery life.
This is modelled following LocationAccuracy in the location plugin. This is good compromise between the iOS and Android models:
- iOS CLLocationAccuracy
- Android LocationRequest
Constructors
- GeolocationAccuracy()
-
const
Values
- powerSave → const GeolocationAccuracy
-
Location is accurate within a distance of 3000m on iOS and 500m on Android.
- low → const GeolocationAccuracy
-
Location is accurate within a distance of 1000m on iOS and 500m on Android.
- balanced → const GeolocationAccuracy
-
Location is accurate within a distance of 100m on iOS and between 100m and 500m on Android.
- high → const GeolocationAccuracy
-
Location is accurate within a distance of 10m on iOS and between 0m and 100m on Android.
-
Location accuracy is optimized for navigation on iOS and between 0m and 100m on Android.
- reduced → const GeolocationAccuracy
-
Location accuracy is reduced for iOS 14+ devices, matches the GeolocationAccuracy.powerSave on iOS 13 and below and all other platforms.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
GeolocationAccuracy> - A constant List of the values in this enum, in order of their declaration.