Package es.situm.sdk.navigation
Interface NavigationListener
-
public interface NavigationListenerNavigationListener Interface to receive updates fromNavigationManagerobject.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidonCancellation()Called when the navigation is cancelled due to a call toNavigationManager.removeUpdates().default voidonDestinationReached()Deprecated.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 voidonStart(Route route)Called when the navigation actually starts after a call toNavigationManager.requestNavigationUpdates(NavigationRequest).voidonUserOutsideRoute()Called when the user does not follow the route and isNavigationRequest.getOutsideRouteThreshold()meters or more far from it
-
-
-
Method Detail
-
onStart
default void onStart(@NonNull Route route)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
default void onDestinationReached(Route route)
Called when the user is close to the destination by less thanNavigationRequest.getDistanceToGoalThreshold()
-
onDestinationReached
@Deprecated default void onDestinationReached()
Deprecated.Called when the user is close to the destination by less thanNavigationRequest.getDistanceToGoalThreshold()
-
onProgress
@Deprecated default void onProgress(NavigationProgress progress)
Deprecated.Called when a new location is received and the route progress is updated
-
onProgress
default void onProgress(@NonNull NavigationProgress progress, @NonNull Route route)Called when a new location is received and the route progress is updated- Parameters:
progress- The current navigation progress.route- The original route.
-
onUserOutsideRoute
void onUserOutsideRoute()
Called when the user does not follow the route and isNavigationRequest.getOutsideRouteThreshold()meters or more far from it
-
-