LocationConfig
data class LocationConfig(val priority: Int = Priority.PRIORITY_BALANCED_POWER_ACCURACY, val intervalMs: Long, val minUpdateMs: Long, val minUpdateMeters: Float = 0.0f)(source)
Describes the accuracy and frequency of location updates.
Use the provided presets:
LocationConfig.HighAccuracy -> Precise GPS fixes, frequent updates.
LocationConfig.Balanced -> Balance between accuracy and battery life (Wifi/Cellular).
LocationConfig.LowPower -> Network-only fixes, optimized for battery.
LocationConfig.Passive -> Receives updates triggered by other apps only.