SyncableDataPersister

Types

Link copied to clipboard

Represent each possible conflict resolution strategy that Sync supports See Tech Design: Sync Engine https://app.asana.com/0/481882893211075/1204303361994831/f DEDUPLICATION -> Remote and Local data will be deduplicated and merged (Account Flows) REMOTE_WINS -> Objects present in Remote will override objets in Local LOCAL_WINS -> Object present in Local wins, Remote object is discarded TIMESTAMP -> The last modified object wins, either from Remote or Local

Functions

Link copied to clipboard
abstract fun onError(error: SyncErrorResponse)

Syncing data failed due to an error related to this feature

Link copied to clipboard

Changes from Sync Client have been received Each feature is responsible for merging and solving conflicts

Link copied to clipboard
abstract fun onSyncDisabled()

Sync Feature has been disabled / device has been removed This is an opportunity for Features to do some local cleanup if needed

Link copied to clipboard
abstract fun onSyncEnabled()

Sync has been enabled This is an opportunity for Features to do some local initialization if needed