Package es.situm.sdk.navigation
Interface NavigationListener
public interface NavigationListener
NavigationListener
Interface to receive updates from
NavigationManager object.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidCalled when the navigation is cancelled due to a call toNavigationManager.removeUpdates().default voidDeprecated.default voidonDestinationReached(Route route) Called when the user is close to the destination by less thanNavigationRequest.getDistanceToGoalThreshold()default voidonProgress(NavigationProgress progress) Deprecated.default voidonProgress(NavigationProgress progress, Route route) Called when a new location is received and the route progress is updateddefault voidCalled when the navigation actually starts after a call toNavigationManager.requestNavigationUpdates(NavigationRequest).voidCalled when the user does not follow the route and isNavigationRequest.getOutsideRouteThreshold()meters or more far from it
-
Method Details
-
onStart
Called when the navigation actually starts after a call toNavigationManager.requestNavigationUpdates(NavigationRequest).- Parameters:
route- The current route.
-
onCancellation
default void onCancellation()Called when the navigation is cancelled due to a call toNavigationManager.removeUpdates(). -
onDestinationReached
Called when the user is close to the destination by less thanNavigationRequest.getDistanceToGoalThreshold() -
onDestinationReached
Deprecated.Called when the user is close to the destination by less thanNavigationRequest.getDistanceToGoalThreshold() -
onUserOutsideRoute
void onUserOutsideRoute()Called when the user does not follow the route and isNavigationRequest.getOutsideRouteThreshold()meters or more far from it
-
onDestinationReached(Route)