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 Modifier and Type Method Description default void
onCancellation()
Called when the navigation is cancelled due to a call toNavigationManager.removeUpdates()
.void
onDestinationReached()
Called when the user is close to the destination by less thanNavigationRequest.getDistanceToGoalThreshold()
void
onProgress(NavigationProgress progress)
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
void onDestinationReached()
Called when the user is close to the destination by less thanNavigationRequest.getDistanceToGoalThreshold()
-
onProgress
void onProgress(NavigationProgress progress)
Called when a new location is received and the route progress is updated
-
onUserOutsideRoute
void onUserOutsideRoute()
Called when the user does not follow the route and isNavigationRequest.getOutsideRouteThreshold()
meters or more far from it
-
-