save
abstract fun save(snapshot: NavigationResumeSnapshot, callback: Callback<Unit, NavigationResumeSnapshotRenewerFailure>): Cancellable
Saves the navigation resume snapshot manually.
You can use the following snippet:
val options = NavigationResumeSnapshotRenewerOptions(saveInterval = 40.seconds)
val navigationResumeSnapshotRenewer = NavigationResumeSnapshotRenewerFactory.create(
context = context,
options = options,
tomTomNavigation = tomTomNavigation
)
Content copied to clipboard
Return
A Cancellable
object that can be used to cancel the operation if necessary.
Parameters
snapshot
The NavigationResumeSnapshot to be saved.
callback
The callback to be invoked upon completion or failure of the save operation. The callback will be executed in the main thread.