DashCoordination

Inheritors

Functions

Link copied to clipboard

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.

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

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 closeSearch()

Close search screen.

Link copied to clipboard

Observe the current external profile.

Link copied to clipboard
abstract suspend fun openMapWithCategorySearch(category: String, displayName: String, anchorPoint: Point? = null, boundingBox: BoundingBox? = null)

Search provided category and show results on the map.

Link copied to clipboard
abstract suspend fun openMapWithSearch(query: String, anchorPoint: Point? = null, boundingBox: BoundingBox? = null)

Search provided query and show results on the map.

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

Open search with the given query and anchor point.

Link copied to clipboard
abstract suspend fun removeExternalProfile(profileId: String?): Boolean

Remove the external profile with the specified id. Only non-active profiles can be removed. null means the default anonymous profile.

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
abstract fun setExternalProfile(profile: ExternalProfile?)

Create an external profile if it doesn't exist and activate it. null means the default anonymous profile.

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.

abstract suspend fun startNavigation(routeIndex: Int = 0): Result<Unit>

Start active guidance with the route indicated by the index. The default is index 0.

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.