Skip to main content
For the complete documentation index, see llms.txt.

Destination management

Navigation SDK UX Framework provides users the ability to control portions of the user experience and state with help of the below functions:

  • Set a destination. This method allows user to send a destination point to the UX Framework instance. Depends on the current application state it allows either to build a route to a new destination point or add a way point to the active route
  • Cancel Active Navigation. This method allows users to stop active navigation session.
  • Navigate to the next stop. This method allows users to navigate to the next stop in the active route.

Following methods will help you to set a destination to the UX Framework and cancel navigation when it’s necessary in your app:

Set a destination: Dash.controller.setDestination(destination)

Cancel Active Guidance: Dash.controller.stopNavigation()

Start navigating to the next stop: Dash.controller.navigateNextRouteLeg()

Take control of your navigation experience without any UI constraints.

class MainActivity : AppCompatActivity() {

fun setNewDestination(destination: DashDestination) {
Dash.controller.setDestination(destination)
}

fun stopNavigation() {
Dash.controller.stopNavigation()
}

fun navigateNextRouteLeg() {
Dash.controller.navigateNextRouteLeg()
}
}
Was this page helpful?