navigationSnapshot
@get:RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP] )
The current NavigationSnapshot.
navigationSnapshot is null at the start of navigation in the following situations:
For NavigationState.FreeDriving:
The location provider is disabled.
The location provider is enabled but unable to find the location.
For NavigationState.ActiveGuidance:
The NavigationStateChangedListener was not yet triggered.
NavigationSnapshot.locationSnapshot initially contains the route's origin until the first location update is processed. When resuming navigation, the initial location is set to the last reached route point saved in NavigationResumeSnapshot.
Note: Once navigationSnapshot is defined, it remains defined throughout the navigation session.
Throws
if the instance of TomTomNavigation is closed.