LocationRepository

Repository for managing device location state.

Abstracts location acquisition (GPS, network) from UI layer. Persists across screen recompositions and activity recreation.

Inheritors

Properties

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

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

Functions

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

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