getCurrentLocation

@RequiresPermission(anyOf = ["android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"])
abstract fun getCurrentLocation(omhOnSuccessListener: OmhSuccessListener, omhOnFailureListener: OmhFailureListener)

Returns a single location fix representing the best estimate of the current location of the device.

Parameters

omhOnSuccessListener

the callback object that will be triggered when completed successfully.

omhOnFailureListener

the callback object that will be triggered when failed.