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

Completed
Link copied to clipboard
class Completed : DittoAttachmentFetchEvent
Deleted
Link copied to clipboard
object Deleted : DittoAttachmentFetchEvent
Progress
Link copied to clipboard
class Progress : DittoAttachmentFetchEvent

Functions

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

Properties

type
Link copied to clipboard
abstract val type: DittoAttachmentFetchEventType

Inheritors

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