Skip to content

DesiredAccuracy

enumDesiredAccuracy: Enum<DesiredAccuracy>

Desired accuracy presets (meters / platform-tuned).

In the Kotlin API, each member's value is the Android location priority it requests, not the number above: HIGH and NAVIGATION are Priority.PRIORITY_HIGH_ACCURACY (100), MEDIUM is PRIORITY_BALANCED_POWER_ACCURACY (102), LOW is PRIORITY_LOW_POWER (104), and LOWEST and VERY_LOW are PRIORITY_PASSIVE (105). Set and compare the members themselves, never their value.


Members

HIGH

val HIGH:DesiredAccuracy

High accuracy (e.g., 0-10m).

LOW

val LOW:DesiredAccuracy

Low accuracy (e.g., 100m).

LOWEST

val LOWEST:DesiredAccuracy

Lowest accuracy (e.g., 3000m).

MEDIUM

val MEDIUM:DesiredAccuracy

Medium accuracy (e.g., 10m).

val NAVIGATION:DesiredAccuracy

Navigation-level accuracy (e.g., 0-10m).

VERY_LOW

val VERY_LOW:DesiredAccuracy

Very low accuracy (e.g., 1000m).