NavigationResumeSnapshotRenewer

@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
interface NavigationResumeSnapshotRenewer : AutoCloseable

The NavigationResumeSnapshotRenewer interface is responsible for the preservation and resumption of navigation sessions. It handles the saving and loading of navigation snapshots.

When the com.tomtom.sdk.navigation.NavigationState changes to com.tomtom.sdk.navigation.NavigationState.ActiveGuidance, NavigationResumeSnapshotRenewer begins periodically saving the navigation resume snapshot and responding to the following events from com.tomtom.sdk.navigation.TomTomNavigation:

Functions

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
abstract fun latestNavigationResumeSnapshot(callback: Callback<NavigationResumeSnapshot, NavigationResumeSnapshotRenewerFailure>): Cancellable

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

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
abstract fun resumeNavigation(callback: Callback<NavigationResumeSnapshot, NavigationResumeSnapshotRenewerFailure>): Cancellable

Loads the previously saved navigation resume snapshot and restores the navigation session by calling com.tomtom.sdk.navigation.TomTomNavigation.resume method.

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
abstract fun save(snapshot: NavigationResumeSnapshot, callback: Callback<Unit, NavigationResumeSnapshotRenewerFailure>): Cancellable

Saves the navigation resume snapshot manually.

Inherited functions

Link copied to clipboard
abstract fun close()