CurrentLocationService

class CurrentLocationService(locationManager: LocationManager, providers: List<String>, options: LocationServiceOptions)

Constructors

Link copied to clipboard
constructor(locationManager: LocationManager, providers: List<String>, options: LocationServiceOptions)

Functions

Link copied to clipboard
@RequiresPermission(anyOf = ["android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"])
fun getCurrentLocation(onSuccess: (OmhCoordinate) -> Unit, onFailure: (Exception) -> Unit)