Working With Attachments

  • Represents an attachment and can be used to insert the associated attachment into a document at a specific key.

    See more

    Declaration

    Swift

    public class DittoAttachment : Hashable
  • These objects are returned by calls to fetchAttachment on ditto.store.

    See more

    Declaration

    Swift

    public class DittoAttachmentFetcher
    extension DittoAttachmentFetcher: Hashable
    extension DittoAttachmentFetcher: Equatable
  • Serves as a token for a specific attachment that you can pass to a call to fetchAttachment on a DittoCollection.

    See more

    Declaration

    Swift

    public class DittoAttachmentToken
    extension DittoAttachmentToken: Equatable
    extension DittoAttachmentToken: Hashable
  • A representation of the 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.

    See more

    Declaration

    Swift

    public enum DittoAttachmentFetchEvent