Package-level declarations
Functions
Link copied to clipboard
fun LocationManager.coarseLocationEvents(minTimeMs: Long = 1000, minDistanceM: Float = 1.0f): Flow<Location>
Returns a cold flow that emits the device's coarse location updates using LocationManager.NETWORK_PROVIDER (or LocationManager.PASSIVE_PROVIDER if network provider is not available).
Link copied to clipboard
fun LocationManager.fineLocationEvents(minTimeMs: Long = 1000, minDistanceM: Float = 1.0f): Flow<Location>
Returns a cold flow that emits the device's fine location updates using LocationManager.GPS_PROVIDER.
Link copied to clipboard
@RequiresPermission(anyOf = ["android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"] )
Simplified helper returning a cold flow that emits device location updates from FusedLocationProviderClient.
Link copied to clipboard
@RequiresPermission(anyOf = ["android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"] )
Returns a cold flow that emits device location updates using FusedLocationProviderClient.requestLocationUpdates.