SyncJobStatus

sealed class SyncJobStatus

Sealed class representing different states of a synchronization operation. These states do not represent WorkInfo.State, whereas CurrentSyncJobStatus combines WorkInfo.State and SyncJobStatus in one-time and periodic sync. For more details, see CurrentSyncJobStatus and PeriodicSyncJobStatus.

Inheritors

Types

Link copied to clipboard
data class Failed(val exceptions: List<ResourceSyncException>) : SyncJobStatus

Sync job failed.

Link copied to clipboard
data class InProgress(val syncOperation: SyncOperation, val total: Int = 0, val completed: Int = 0) : SyncJobStatus

Syncing in progress with the server.

Link copied to clipboard

Sync job has been started on the client but the syncing is not necessarily in progress.

Link copied to clipboard

Sync job finished successfully.

Properties

Link copied to clipboard