ditto / live.ditto / DittoAttachmentFetchEvent

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

class Completed : DittoAttachmentFetchEvent

Deleted

object Deleted : DittoAttachmentFetchEvent

Progress

class Progress : DittoAttachmentFetchEvent

Properties

type

abstract val type: DittoAttachmentFetchEventType

Functions

asCompleted

fun asCompleted(): Completed?

asDeleted

fun asDeleted(): Deleted?

asProgress

fun asProgress(): Progress?