NavigationLanguageChangeObserver
public protocol NavigationLanguageChangeObserver : Observer
Declares an observer that can receive the language update events.
The navigation language is changed when TomTomNavigation.preferredLanguage
is set and the route is
successfully updated.
To add a NavigationLanguageChangeObserver
, use addLanguageChangeObserver(_:)
.
To stop receiving these events, remove the observer using removeLanguageChangeObserver(_:)
.
-
Notifies that the
TomTomNavigation.language
has changed.Declaration
Swift
func didChangeLanguage(language: Locale)
Parameters
language
The new language.