NavigationFragment
An Android fragment wrapping TomTomNavigation. It provides the UI that shows information about the oncoming manoeuvres, route parameters (like ETA and remaining distance), current speed and the speed limit.
It can be instantiated either programmatically via NavigationFragment.newInstance(navigationUiOptions: NavigationUiOptions) or via the XML view inflation.
Important: This is a Public Preview API. It may be changed or removed at any time.
See also
Types
Inherited properties
Functions
Adds the instance of NavigationListener.
Changes the language which will be used to synthesize audio messages.
Changes which TextToSpeechEngine will be used to synthesize audio instructions. TextToSpeechEngine.dispose is called on TextToSpeechEngine which is being replaced.
Removes previously added NavigationListener.
Sets an instance of TomTomNavigation. It has to be called before calling any other navigation method, such as: startNavigation(routes: List
Sets the units for distance and speed.
Starts navigation without a Route. This method wraps the call to TomTomNavigation.start. Navigation will proceed with following steps:
Starts navigation with provided RoutePlan. This method wraps the call to TomTomNavigation.start. When called, the UI starts showing Route's guidance, current speed and speed limit. NavigationListener.onStarted is called when navigation has been started.
Stops the navigation. This method wraps the call to TomTomNavigation.stop. When called, the UI stops showing Route's guidance, current speed and speed limit.
Updates navigation session with a provided RoutePlan. This method wraps the call to TomTomNavigation.update. If startNavigation(navigationOptions: NavigationOptions) has been called already, the UI will change accordingly.