DittoAttachmentFetchEvent

sealed class DittoAttachmentFetchEvent

The different events that can occur in relation to an attachment fetch.

There are three different attachment fetch events: Completed, Progress, or Deleted.

There will be at most one Completed or Deleted event per attachment fetch. There can be many Progress events delivered for each attachment fetch.

Updates relating to an attachment fetch are delivered by registering a DittoAttachmentFetcher through a call to fetchAttachment on a DittoCollection instance.

Types

Link copied to clipboard
class Completed : DittoAttachmentFetchEvent

Event signaling the completion of an attachment download.

Link copied to clipboard
class Deleted : DittoAttachmentFetchEvent

Event signaling the deletion of an attachment.

Link copied to clipboard
class Progress : DittoAttachmentFetchEvent

Event signaling download progress for an attachment.

Functions

Link copied to clipboard
fun asCompleted(): DittoAttachmentFetchEvent.Completed?
Link copied to clipboard
fun asDeleted(): DittoAttachmentFetchEvent.Deleted?
Link copied to clipboard
fun asProgress(): DittoAttachmentFetchEvent.Progress?

Properties

Link copied to clipboard
abstract val type: DittoAttachmentFetchEventType

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard