Working With Attachments
-
Represents an attachment and can be used to insert the associated attachment into a document at a specific key.
See moreDeclaration
Swift
public class DittoAttachment : Hashable
-
These objects are returned by calls to
See morefetchAttachment
onDittoCollection
s. They must be kept alive for the fetching of the attachment to proceed and for you to be notified once the status of the fetch request has changed.Declaration
Swift
public class DittoAttachmentFetcher
-
Serves as a token for a specific attachment that you can pass to a call to
See morefetchAttachment
on aDittoCollection
.Declaration
Swift
public class DittoAttachmentToken : Equatable
-
A representation of the events that can occur in relation to an attachment fetch.
There are three different attachment fetch events:
completed
,progress
, ordeleted
.There will be at most one
completed
ordeleted
event per attachment fetch. There can be manyprogress
events delivered for each attachment fetch.Updates relating to an attachment fetch are delivered by registering a
See moreDittoAttachmentFetcher
through a call tofetchAttachment
on aDittoCollection
instance.Declaration
Swift
public enum DittoAttachmentFetchEvent