UploadState

sealed class UploadState

Represents various states in attachment upload lifecycle.

Inheritors

Types

Link copied to clipboard
data class Failed(val error: Error) : Attachment.UploadState

State indicating that the attachment upload failed.

Link copied to clipboard

Idle state before attachment starts to upload.

Link copied to clipboard
data class InProgress(val bytesUploaded: Long, val totalBytes: Long) : Attachment.UploadState

State representing attachment upload progress.

Link copied to clipboard

State indicating that the attachment was uploaded successfully