AndroidLocationTracker

Android LocationTracker backed by the fused location provider.

Callers must hold a location permission before calling start/current; a revoked permission is swallowed (the stream simply stays empty) rather than crashing. Permission requests are the responsibility of PermissionsProvider.

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
open override val updates: Flow<GeoPoint>

Hot stream of location updates while tracking is active.

Functions

Link copied to clipboard
open suspend override fun current(): GeoPoint?

One-shot best-effort current location, or null if unavailable.

Link copied to clipboard
open override fun start()
Link copied to clipboard
open override fun stop()