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
Link copied to clipboard
object Deleted : DittoAttachmentFetchEvent
Link copied to clipboard
class Progress : DittoAttachmentFetchEvent

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