Syncable

interface Syncable

Interface marker for a class that is synchronized with a remote source. Syncing must not be performed concurrently and it is the Synchronizer's responsibility to ensure this.

Functions

Link copied to clipboard
abstract suspend fun syncWith(synchronizer: Synchronizer): Boolean

Synchronizes the local database backing the repository with the network. Returns if the sync was successful or not.