NavigationManager

public class NavigationManager
extends Object implements Manager

java.lang.Object
   ↳ androidx.car.app.navigation.NavigationManager


Manager for communicating navigation related events with the host.

Navigation apps must use this interface to coordinate with the car system for navigation specific resources such as vehicle cluster and heads-up displays.

When a navigation app receives a user action to start navigating, it should call navigationStarted() to indicate it is currently navigating. When the app receives a user action to end navigation or when the destination is reached, navigationEnded() should be called.

Navigation apps must also register a NavigationManagerCallback to handle callbacks to NavigationManagerCallback.onStopNavigation() issued by the host.

Summary

Public methods

void clearNavigationManagerCallback()

Clears the callback for receiving navigation manager events.

void navigationEnded()

Notifies the host that the app has ended active navigation.

void navigationStarted()

Notifies the host that the app has started active navigation.

void setNavigationManagerCallback(Executor executor, NavigationManagerCallback callback)

Sets a callback to start receiving navigation manager events.

void setNavigationManagerCallback(NavigationManagerCallback callback)

Sets a callback to start receiving navigation manager events.

void updateTrip(Trip trip)

Sends the destinations, steps, and trip estimates to the host.

Inherited methods