LanguageChangedListener

Used to inform the caller that the navigation language has been changed.

The navigation language is changed when TomTomNavigation.preferredLanguage is set and the route was successfully updated.

In order to listen to the language changes, implement this interface to create a listener, for instance:

val languageChangedListener = LanguageChangedListener { language ->
// Implement the necessary functionality for handling the language change
}

Subsequently, add this listener using TomTomNavigation.addLanguageChangedListener. To stop listening to the language changes, remove the listener using TomTomNavigation.removeLanguageChangedListener.

Functions

Link copied to clipboard
abstract fun onLanguageChanged(language: Locale)

Called whenever the navigation language has been changed. It is expected to have this method called after setting TomTomNavigation.preferredLanguage.