android-components / mozilla.components.feature.sync

Package mozilla.components.feature.sync


Name Summary
BackgroundSyncManager class BackgroundSyncManager : GeneralSyncManager
A SyncManager implementation which uses WorkManager APIs to schedule sync tasks.
GeneralSyncManager abstract class GeneralSyncManager : SyncManager, Observable<SyncStatusObserver>, SyncStatusObserver
A base SyncManager implementation which manages a dispatcher, handles authentication and requests synchronization in the following manner: On authentication AND on store set changes (add or remove)…
GlobalSyncableStoreProvider object GlobalSyncableStoreProvider
A singleton registry of SyncableStore objects. WorkManagerSyncDispatcher will use this to access configured SyncableStore instances.
StorageSync class StorageSync : Observable<SyncStatusObserver>
A feature implementation which orchestrates data synchronization of a set of SyncableStore-s.
SyncDispatcher interface SyncDispatcher : Closeable, Observable<SyncStatusObserver>
Internal interface to enable testing SyncManager implementations independently from SyncDispatcher.
WorkManagerSyncDispatcher class WorkManagerSyncDispatcher : SyncDispatcher, Observable<SyncStatusObserver>, Closeable
WorkManagerSyncWorker class WorkManagerSyncWorker : CoroutineWorker
WorkersLiveDataObserver object WorkersLiveDataObserver
A singleton wrapper around the the LiveData “forever” observer - i.e. an observer not bound to a lifecycle owner. This observer is always active. We will have different dispatcher instances throughout the lifetime of the app, but always a single LiveData instance.


Name Summary
getLastSynced fun getLastSynced(context: Context): Long
setLastSynced fun setLastSynced(context: Context, ts: Long): Unit