Package es.situm.sdk.navigation
Interface NavigationListener
-
public interface NavigationListener
NavigationListener Interface to receive updates fromNavigationManager
object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
onCancellation()
Called when the navigation is cancelled due to a call toNavigationManager.removeUpdates()
.default void
onDestinationReached()
Deprecated.default void
onDestinationReached(Route route)
Called when the user is close to the destination by less thanNavigationRequest.getDistanceToGoalThreshold()
default void
onProgress(NavigationProgress progress)
Deprecated.default void
onProgress(NavigationProgress progress, Route route)
Called when a new location is received and the route progress is updateddefault void
onStart(Route route)
Called when the navigation actually starts after a call toNavigationManager.requestNavigationUpdates(NavigationRequest)
.void
onUserOutsideRoute()
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
-
-