tripkit-android / com.skedgo.tripkit.ui.locationhelper / LocationHelper / getCurrentLocation

getCurrentLocation

fun getCurrentLocation(listener: OnLocationFoundListener):Unit

Retrieves the current location.

Parameters

listener - The callback to be called when a location is found.fun getCurrentLocation(listener: (Location) ->Unit, error: (String) ->Unit):Unit

Retrieves the current location.

Parameters

listener - A function to be called when a location is found.

error - A function to be called when an error occurred.