Interface LocationListener


  • public interface LocationListener

    This interface should be implemented in order to receive notifications about location updates.

    • Method Detail

      • onLocationUpdated

        void onLocationUpdated​(@NonNull
                               Location location)

        Called each time a new location is available. In a navigation context while using the Navigator or VisualNavigator, it's required to set the Location.time parameter for each Location object so that the HERE SDK can map-match the locations properly. If the Location.time parameter is missing, the location will be ignored. For navigation, it is also recommended to provide the bearing and speed parameters for each Location object. Invoked on the main thread.

        Parameters:
        location -

        Current location.