CurrentSyncJobStatus

Sealed class representing different states of a synchronization operation. It combines WorkInfo.State and SyncJobStatus. Enqueued state represents WorkInfo.State.ENQUEUED where SyncJobStatus is not applicable. Running state is a combined state of WorkInfo.State.ENQUEUED and SyncJobStatus.Started or SyncJobStatus.InProgress. Succeeded state is a combined state of WorkInfo.State.SUCCEEDED and SyncJobStatus.Started or SyncJobStatus.Succeeded. Failed state is a combined state of WorkInfo.State.FAILED and SyncJobStatus.Failed. Cancelled state represents WorkInfo.State.CANCELLED where SyncJobStatus is not applicable.

Inheritors

Types

Link copied to clipboard

State indicating that the synchronization operation is blocked.

Link copied to clipboard

State indicating that the synchronization operation is canceled.

Link copied to clipboard

State indicating that the synchronization operation is enqueued.

Link copied to clipboard

State indicating that the synchronization operation failed.

Link copied to clipboard
data class Running(val inProgressSyncJob: SyncJobStatus) : CurrentSyncJobStatus

State indicating that the synchronization operation is running.

Link copied to clipboard

State indicating that the synchronization operation succeeded.