LocationListener (API Reference)
Package com.here.sdk.core
Interface LocationListener
public interface LocationListener
This interface should be implemented in order to receive notifications about location updates.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonLocationUpdated(Location location) Called each time a new location is available.
-
Method Details
-
onLocationUpdated
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.
-