TomTomNavigation
Responsible for interacting with and customizing a navigation.
Important: This is a Public Preview API. It may be changed or removed at any time.
Functions
Accepts the proposed Route. The Route is proposed via ReplannedRouteProposedListener. The navigation will switch to navigate along the proposed route and the RouteUpdatedListener will be notified. If the acceptance of the proposed route fails, the NavigationFailureListener will be triggered with the RouteUpdateFailure.
Adds an DestinationReachedListener which will inform about reaching destination the ArrivalDetectionEngine successfully detects arrival at the destination.
Adds an GuidanceUpdatedListener which will inform about new Guidance each time a location change occurs and the GuidanceEngine successfully generates it.
Adds an HorizonUpdatedListener which will inform about new horizon snapshot each time a location change occurs and the HorizonEngine successfully updated it.
Adds an LaneGuidanceUpdatedListener which will report new LaneGuidance every time a location change occurs and the GuidanceEngine successfully generates it.
Adds an LanguageChangedListener which will report on changes to the navigation language.
Adds an LocationContextUpdatedListener which will inform about new LocationContext each time a location change occurs and the LocationContextProviderEngine successfully provides it.
Adds an LocationMapMatchedListener which will inform about new MapMatchingResult each time a location change occurs and the MapMatchingEngine successfully matches it.
Adds an NavigationFailureListener which will inform about failures that occurred during navigating.
Adds an NavigationStartedListener which will inform about successful navigation start.
Adds an ProgressUpdatedListener which will inform about new progress along the route each time a location update occurs and the RouteProgressEngine successfully calculates it.
Adds an ReplannedRouteProposedListener which will report on the new ReplannedRoute. Its Route can be used for navigation by accepting this proposal using the acceptProposedRoute method. The listener will only be triggered if BetterProposalAcceptanceMode is set to BetterProposalAcceptanceMode.Manual or BetterProposalAcceptanceMode.UnreachableOnly in com.tomtom.sdk.navigation.online.Configuration.
Adds an RouteDeviationListener which will inform about getting off the route when the RouteTrackingEngine successfully detects it.
Adds an RoutesChangedListener which will inform about any change to the set of routes in the navigation session.
Adds a RouteTrackingStateUpdatedListener that informs about the current RouteTrackingState.
Adds an RouteUpdatedListener which will inform about successful update of the Route.
Adds an WaypointArrivalListener which will inform about waypoints arrival state change when the ArrivalDetectionEngine successfully detects arrival at a waypoint.
Manually mark waypoint as visited. This action requires that waypoint has been previously announced as reached via WaypointArrivalListener and that is has not been announced as visited via WaypointArrivalListener. The navigation will mark the given waypoint as visited and the WaypointArrivalListener will be notified.
Removes previously registered DestinationReachedListener.
Removes previously registered GuidanceUpdatedListener.
Removes previously registered HorizonUpdatedListener.
Removes previously registered LaneGuidanceUpdatedListener.
Removes previously registered LanguageChangedListener.
Removes previously registered LocationContextUpdatedListener.
Removes previously registered LocationMapMatchedListener.
Removes previously registered NavigationFailureListener.
Removes previously registered NavigationStartedListener.
Removes previously registered ProgressUpdatedListener.
Removes previously registered ReplannedRouteProposedListener.
Removes previously registered RouteDeviationListener.
Removes previously registered RoutesChangedListener.
Removes previously registered RouteTrackingStateUpdatedListener.
Removes previously registered RouteUpdatedListener.
Removes previously registered WaypointArrivalListener.
Starts navigation without a Route. In this case navigation will just provide a MapMatchingResult and LocationContext, therefore navigation will interact only with LocationMapMatchedListener and LocationContextUpdatedListener.
Starts navigation with provided NavigationOptions. Navigation will go through all steps:
Updates the navigation session with a Route from a provided NavigationOptions. If the navigation was started with a Route then this method will replace the current Route with the provided one. If the navigation was started without a Route then this method will start navigating on the provided Route. Note that the initial instances of navigation engines will be used in the new navigation session.
Properties
The current BetterProposalAcceptanceMode.
Language to be used within TomTomNavigation.
The LocationProvider used by the TomTomNavigation for providing location updates to the navigation.
Provides access to current registered engines and allows updating them.
The current NavigationSnapshot. Can be null when navigation is not yet started or already stopped.
UnitSystem to be used within TomTomNavigation.
The VehicleProvider used by the TomTomNavigation for providing vehicle updates to the navigation.