State

sealed interface State

Where a download stands.

Inheritors

Types

Link copied to clipboard

Fully on the device. This is the state the reader needs to open the issue.

Link copied to clipboard

Bytes are coming in — follow Item.progress to see how far along.

Link copied to clipboard

The download stopped on an error. Call start to try again.

Link copied to clipboard

Nothing has been fetched. The issue is not on the device and no download is pending.

Link copied to clipboard
data class Paused(val user: String? = null) : Download.Item.State

Stopped part-way, keeping what it already has. resume picks up from there.

Link copied to clipboard

Waiting its turn. The download manager will start it when capacity frees up.