LanguageChangedListener

Informs the caller that the navigation language has changed.

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

To be notified of language changes, add a LanguageChangedListener with TomTomNavigation.addLanguageChangedListener.

val listener = LanguageChangedListener { language ->
/* Your code goes here */
}

tomTomNavigation.addLanguageChangedListener(listener)

To stop receiving language change notifications, remove the listener using TomTomNavigation.removeLanguageChangedListener.

tomTomNavigation.removeLanguageChangedListener(listener)

Functions

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

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