DashController
Controller for a Dash instance running in the host application.
Functions
Update search results list with ETA and distance values. If a search result already has non-null ETA and distance, it won't be updated.
Add item to the favorites.
Add item to the history.
Clean history.
Fetch routes for a given destination. Returns a list of NavigationRoute that can be used to start navigation.
Perform a forward search with a given query.
Returns DashOfflineRegionMetadata for the current offline tile pack, null if no tile pack is loaded.
Returns SearchAlongTheRouteOptions for the current routeProgress, that can be passed to DashNavigationFragment.openMapWithCategorySearch and DashSearchEngine.categorySearch functions.
After arriving at a stop, this can be used to manually decide when to start navigating to the next stop.
Observes audio focus events.
Observes available charge state points on the map during active guidance.
Observe debug bundle is ready and saved on the file system
Observe the current external profile.
Observe favorites.
A Flow that emits generic events.
Observe history.
A Flow that emits the best possible location update, snapped to the route or map-matched to the road if possible.
A Flow that emits whenever a log is available.
Observes the status of the navigation database.
A Flow that emits NavigationEvent.
A Flow that emits every time a NavigationState changes. Upon collection, the first emitted value is always current NavigationState.
A Flow that emits every time the next Maneuver.
A Flow that emits every time a new Location has been received.
A Flow that emits DashRoadInfoEvent.
A Flow that emits whenever a list of active routes changes.
A Flow that emits whenever the active route waypoints change.
Observe search request state.
Observe search results.
Observe search suggestions.
Remove the external profile with the specified id. Only non-active profiles can be removed. null means the default anonymous profile.
Remove item from the favorites.
Remove item from the history.
Resets the navigation state in FreeDrive by clearing all routes and stopping active guidance.
Perform suggestions search with a given query.
Create an external profile if it doesn't exist and activate it. null means the default anonymous profile.
Set a list of navigation suggestions.
Start active guidance with the given route.
Start active guidance with the route indicated by the index. The default is index 0.
Starts listening for location updates and enters an Active Guidance state if there's a primary route available or a Free Drive state otherwise.
Stop active guidance and revert back to Free Drive state.
Stops listening for location updates and enters an Idle state.