NavigationViewApi
Api that gives you the ability to change the state for navigation apps.
Functions
Enables replay trip session based on simulated locations.
Enables trip session based on real gps updates.
Request routes based on RouteOptions. Routes obtained from this route request can be obtained via NavigationViewListener.onRouteFetching when the route is being fetched NavigationViewListener.onRouteFetchFailed if the route request failed NavigationViewListener.onRouteFetchCanceled if the route request was canceled NavigationViewListener.onRouteFetchSuccessful if the route request was a success
Request routes based on list of Point. Routes obtained from this route request can be obtained via NavigationViewListener.onRouteFetching when the route is being fetched NavigationViewListener.onRouteFetchFailed if the route request failed NavigationViewListener.onRouteFetchCanceled if the route request was canceled NavigationViewListener.onRouteFetchSuccessful if the route request was a success The first point in the list should be the origin and last point should be the destination. If you have multi waypoints, you can insert additional waypoints in the list between the first and the last point.
Checks if the current trip is being simulated.
Sets a destination to NavigationView.
Sets the routes passed to NavigationView and not to MapboxNavigation. The action does not triggers RouteProgress, BannerInstructions or VoiceInstructions updates even if the TripSessionState is TripSessionState.STARTED.
Sets the routes passed to MapboxNavigation. The action triggers RouteProgress, BannerInstructions and VoiceInstructions updates if the TripSessionState is TripSessionState.STARTED.