FusedLocationClient

Play services' fused location provider, which a flavor that ships Play services binds. It fixes faster than the platform's providers and indoors from Wi-Fi. NONE is the F-Droid binding, and a phone without a working Play services answers null too, so LocationRepositoryImpl falls back to the platform's providers.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun requestLocationUpdates(intervalMillis: Long, executor: Executor, listener: (Location) -> Unit, onFailure: (Exception) -> Unit): AutoCloseable?

Deliver a fix to listener on executor about every intervalMillis at high accuracy, and return what stops them, or null when Play services cannot serve. Registration completes later, so a request Play services refuse after this returns reaches onFailure on executor. Throws SecurityException without a location grant.