LocationRepository

@Singleton
class LocationRepository @Inject constructor(context: Application, locationManager: Lazy<LocationManager>) : Logging

Constructors

Link copied to clipboard
@Inject
constructor(context: Application, locationManager: Lazy<LocationManager>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
@RequiresPermission(anyOf = ["android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"])
fun getLocations(): Flow<Location>

Observable flow for location updates