AutomaticClientResetStrategy

interface AutomaticClientResetStrategy : SyncClientResetStrategy

Interface that defines an automatic sync client reset strategy, it could be either DiscardUnsyncedChangesStrategy, RecoverOrDiscardUnsyncedChangesStrategy or RecoverUnsyncedChangesStrategy.

Functions

onBeforeReset
Link copied to clipboard
abstract fun onBeforeReset(realm: <ERROR CLASS>)

Callback that indicates a Client Reset is about to happen. It receives a frozen instance of the realm that will be reset.

onManualResetFallback
Link copied to clipboard
abstract fun onManualResetFallback(session: SyncSession, exception: ClientResetRequiredException)

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