LocationAccuracyStatus enum
Represents whether the app can access the precise location of the device, or only an approximate location.
This is the value returned by getLocationAccuracy(). What it is based on
differs per platform:
- Android: precise when the
ACCESS_FINE_LOCATIONpermission is granted, and reduced when onlyACCESS_COARSE_LOCATIONis granted, for example because the user chose approximate location on Android 12 or higher. - iOS 14 and higher: precise or reduced, depending on whether the user allowed precise location.
- iOS 13 and lower, and macOS: always precise.
- Windows: precise when position updates were last requested with
LocationAccuracy.mediumor better, otherwise reduced. - Linux: based on the accuracy level that GeoClue makes available.
Values
- reduced → const LocationAccuracyStatus
-
Only an approximate location of the device is available.
- precise → const LocationAccuracyStatus
-
The precise location of the device is available.
- unknown → const LocationAccuracyStatus
-
The accuracy level is not known, for example on Linux when GeoClue reports no accuracy level at all.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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<
LocationAccuracyStatus> - A constant List of the values in this enum, in order of their declaration.