FusedLocationProvider

@RequiresPermission(anyOf = ["android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION"])
constructor(locationClient: FusedLocationProviderClient, locationRequest: LocationRequest, coroutineScope: CoroutineScope, sharingStarted: SharingStarted)(source)

Parameters

locationClient

the FusedLocationProviderClient to use

locationRequest

the LocationRequest to use

coroutineScope

the CoroutineScope used to share the location flow

sharingStarted

parameter for stateIn call of location