Automatic Client Reset Strategy
Interface that defines an automatic sync client reset strategy, it could be either DiscardUnsyncedChangesStrategy, RecoverOrDiscardUnsyncedChangesStrategy or RecoverUnsyncedChangesStrategy.
Functions
on Before Reset
Link copied to clipboard
Callback that indicates a Client Reset is about to happen. It receives a frozen instance of the realm that will be reset.
on Manual Reset Fallback
Link copied to clipboard
abstract fun onManualResetFallback(session: SyncSession, exception: ClientResetRequiredException)
Content copied to clipboard
Callback that indicates the Client reset failed to complete. It should be handled as in ManuallyRecoverUnsyncedChangesStrategy.onClientReset.
Inheritors
DiscardUnsyncedChangesStrategy
Link copied to clipboard
RecoverUnsyncedChangesStrategy
Link copied to clipboard
RecoverOrDiscardUnsyncedChangesStrategy
Link copied to clipboard