Interface LocationListener
Package com.here.sdk.core
Interface LocationListener
-
public interface LocationListenerThis interface should be implemented in order to receive notifications about location updates.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonLocationUpdated(Location location)Called each time a new location is available.
-
-
-
Method Detail
-
onLocationUpdated
void onLocationUpdated(@NonNull Location location)Called each time a new location is available. In a navigation context while using the
NavigatororVisualNavigator, it's required to set theLocation.timeparameter for eachLocationobject so that the HERE SDK can map-match the locations properly. If theLocation.timeparameter is missing, the location will be ignored. For navigation, it is also recommended to provide thebearingandspeedparameters for eachLocationobject. Invoked on the main thread.- Parameters:
location-Current location.
-
-