DashCoordination

Inheritors

Functions

Link copied to clipboard
abstract suspend fun addFavoriteItem(result: DashSearchResult)

Add item to the favorites.

Link copied to clipboard
abstract suspend fun addHistoryItem(result: DashSearchResult)

Add item to the history.

Link copied to clipboard
abstract suspend fun cleanHistory()

Clean history.

Link copied to clipboard
abstract suspend fun openMapWithCategorySearch(category: String, displayName: String)

Search provided category and show results on the map.

Link copied to clipboard
abstract fun openSearch(searchQuery: String?, anchorPoint: Point? = null)

Open search with the given query and anchor point.

Link copied to clipboard
abstract suspend fun removeFavoriteItem(result: DashSearchResult)

Remove item from the favorites.

Link copied to clipboard
abstract suspend fun removeHistoryItem(result: DashSearchResult)

Remove item from the history.

Link copied to clipboard
abstract suspend fun search(query: String, proximity: Point? = null, boundingBox: BoundingBox? = null): List<DashSearchSuggestion>

Perform search with a given query.

Link copied to clipboard
abstract suspend fun setDestination(destination: DashDestination): Result<DashRoutePreview>

Set a destination for Dash to navigate to. Returns a DashRoutePreview that can be used to start navigation.

Link copied to clipboard
abstract fun setEvDataProvider(evDataProvider: EvDataProvider)

Set EV data provider that provides EV relevant data, like state of charge, charging curves, etc.

Link copied to clipboard

Set a list of navigation suggestions.

Link copied to clipboard
abstract suspend fun startNavigation(route: NavigationRoute): Result<Unit>

Start active guidance with the given route.

Link copied to clipboard
abstract fun startTripSession(): Result<Unit>

Starts listening for location updates and enters an Active Guidance state if there's a primary route available or a Free Drive state otherwise.

Link copied to clipboard
abstract suspend fun stopNavigation(): Result<Unit>

Stop active guidance and revert back to Free Drive state.

Link copied to clipboard
abstract fun stopTripSession()

Stops listening for location updates and enters an Idle state.