NavigationManagerCallback
public
interface
NavigationManagerCallback
androidx.car.app.navigation.NavigationManagerCallback |
Callback for events from the NavigationManager
.
See also:
Summary
Public methods | |
---|---|
abstract
void
|
onAutoDriveEnabled()
Notifies the app that, from this point onwards, when the user chooses to navigate to a destination, the app should start simulating a drive towards that destination. |
abstract
void
|
onStopNavigation()
Notifies the app to stop active navigation, which may occurs when another source such as the car head unit starts navigating. |
Public methods
onAutoDriveEnabled
public abstract void onAutoDriveEnabled ()
Notifies the app that, from this point onwards, when the user chooses to navigate to a destination, the app should start simulating a drive towards that destination.
This mode should remain active until CarContext.finishCarApp()
is called.
This functionality is used to allow verifying the app's navigation capabilities without being in an actual car.
onStopNavigation
public abstract void onStopNavigation ()
Notifies the app to stop active navigation, which may occurs when another source such as the car head unit starts navigating.
When receiving this callback, the app must stop all routing including navigation voice
guidance, routing-related notifications, and updating trip information via NavigationManager.updateTrip(Trip)
.