SyncManager

interface SyncManager(source)

Contract for requesting background sync and observing running state.

The implementation is supplied by the sync module.

Properties

Link copied to clipboard
abstract val isSyncing: Flow<Boolean>

Emits whether matching work is running; waiting or failed work is not running.

Functions

Link copied to clipboard
abstract fun requestSync()

Requests background work without awaiting completion. The scheduler may keep existing work.