Navigation
Singleton class that handles the current navigation.
Properties
EV alerting error observable methods
Alerting observable methods
Arrival observable methods
indicates if the guidance's instructions will be played or not. Default value is true.
the base path to the audio files. Works with audioFilesFolderRelativePath. If not specified (null), default value will be used with Core.getInstance().getExternalScopedStoragePath()
the relative path (from the audioFilesBasePath) to the folder containing all audio files folders (one for each language)
Better route with traffic observable methods
the Route used for the current guidance. Its value will only change when startSession will be called, or when re-route events occur during a session of type SessionState.GUIDANCE
Current route updates observable methods
Instructions observable methods
Enable or disable safety camera alerts, or get the current value.
the MapView attached to this Navigation
Navigation error observable methods
the absolute path to the icon path used for vehicle icon during navigation. If not specified (null), default value will be used with Core.getInstance().getExternalScopedStoragePath() and navigation_icon_default_name res.
NavigationProgress observable methods
Re-routing observable methods
Safety Alerts observable methods
SpeedLimit observable methods
If true TTS instructions will include the road name
zoom level applied in NavigationMapViewMode.GUIDANCE_VIEW_2D and NavigationMapViewMode.GUIDANCE_VIEW_NORTH
zoom level applied in NavigationMapViewMode.GUIDANCE_VIEW_3D
Functions
Attach a MapView to the navigation
Changes the location data source for the navigation engine. Before calling this method, make sure that the navigation session is stopped.
Detach the current attached MapView
Get the navigation view mode of the current attached MapView
Returns the current session state
Determines if route display should hide the route section between start and current vehicle's position (default is false).
Initializes the location data source for the navigation engine. You can use isInit to check if engine is initialized with a LocationDataSource
Returns true if the Navigation engine has been successfully initialized with a LocationDataSource using initLocationDataSource
Called when the attached MapView is destroyed.
Notifies when a new instruction is available during guidance. It provides the instruction's text, the maneuver icon for the instruction, the chained maneuvers icon if any, the signpost icon if any, and the lane info icon if any.
Notifies when a new text instruction is available during guidance.
Instructions callback
Forces rerouting (for guidance mode only): Recomputes route after blocking road segments of current route starting from next intersection and within a given length. Call this method during guidance process if you wish to force rerouting
This option defines the maximum length (in meters) of the route to be displayed.
Sets the navigation view mode of the current attached MapView It should be called after Navigation.attachMapView
Set the remote planner proxy.
Shows or hides route waypoints. It has to be called before starting a guidance session.
This option determines, at start point or any via point for which an avoid UTurn restriction is set, the threshold of the difference of ETA between avoiding a UTurn or not, above which UTurn is allowed.
Sets the horizontal position of the vehicle symbol on the attached MapView. The position is defined as a percentage of the MapView width, where 0.5 represents the center. Values less than 0.5 shift the vehicle to the left, values greater than 0.5 shift it to the right.
Set path to the vehicle resource that'll be drawn by the navigation directly The vehicle will be drawn only when StartSession is called
Sets the vertical position of the vehicle symbol on the attached MapView. The position is defined as a percentage of the MapView height, measured from the bottom of the screen.
Starts a navigation session with the passed route
Stops the foreground notification if its running
Stops the current session.
Unmute the vocal instruction
Updates the current route options for the currentRoute. A re-route will occur and the currentRoute will be updated during a guidance. If this method is called when the navigation is not in guidance, it will return an error.
Updates the current vehicle profile for the currentRoute. A re-route will occur and the currentRoute will be updated during a guidance. If this method is called when the navigation is not in guidance, it will return an error.
Updates the vehicle status for the navigation