latestNavigationResumeSnapshot

Loads the previously saved navigation resume snapshot without restoring the navigation session.

To resume a previously saved navigation session manually, you can use the following snippet:

val navigationResumeSnapshotRenewer = NavigationResumeSnapshotRenewerFactory.create(
context = context,
options = NavigationResumeSnapshotRenewerOptions(),
tomTomNavigation = tomTomNavigation
)
navigationResumeSnapshotRenewer.latestNavigationResumeSnapshot(
callback = object :
Callback<NavigationResumeSnapshot, NavigationResumeSnapshotRenewerFailure> {
override fun onSuccess(result: NavigationResumeSnapshot) {
tomTomNavigation.resume(result)
/* YOUR CODE GOES HERE */
}

override fun onFailure(failure: NavigationResumeSnapshotRenewerFailure) {
/* YOUR CODE GOES HERE */
}
}
)

Return

A Cancellable object that can be used to cancel the operation if necessary.

Parameters

callback

The callback to be invoked with the loaded navigation snapshot or in case of failure. The callback will be executed in the main thread.