DefaultLocationRepository

Default in-memory implementation of LocationRepository.

Stores the latest location in a MutableStateFlow. Not persisted to disk (location changes frequently and expires quickly).

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val currentLocation: StateFlow<LocationData?>

Current location as a reactive StateFlow. Emits null while acquiring initial location.

Functions

Link copied to clipboard
open override fun updateLocation(location: LocationData?)

Update or clear the current location (called by location controller).