ditto / live.ditto / DittoAttachmentFetcher

DittoAttachmentFetcher

class DittoAttachmentFetcher

These objects are returned by calls to fetchAttachment on DittoCollections.

They must be kept alive for as long as you wish to observe updates about the associated attachment.

If you wish to cancel fetching an attachment, or once you've fetched an attachment successfully, you should call stop on this object.

Functions

finalize

fun finalize(): Unit

stop

Stops fetching the fetcher's associated attachment and cleans up any associated resources.

fun stop(): Unit