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

    Objective-C

    @interface DITAttachment : NSObject
  • These objects are returned by calls to fetchAttachment on DITCollections. They must be kept alive for as long as you wish to observe updates about the associated attachment.

    See more

    Declaration

    Objective-C

    @interface DITAttachmentFetcher : NSObject
  • Serves as a token for a specific attachment that you can pass to a call to fetchAttachment on a DITCollection.

    Declaration

    Objective-C

    @interface DITAttachmentToken : NSObject
  • 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 DITAttachmentFetcher through a call to fetchAttachment on a DITCollection instance.

    See more

    Declaration

    Objective-C

    @interface DITAttachmentFetchEvent : NSObject
  • The types of attachment fetch events that can be delivered to an attachment fetcher’s onFetchEvent block.

    See more

    Declaration

    Objective-C

    enum DITAttachmentFetchEventType : NSUInteger {}
  • An attachment fetch event used when the attachment’s download has completed.

    See more

    Declaration

    Objective-C

    @interface DITAttachmentFetchEventCompleted : DITAttachmentFetchEvent
  • An attachment fetch event used when the attachment is deleted.

    Declaration

    Objective-C

    @interface DITAttachmentFetchEventDeleted : DITAttachmentFetchEvent
  • An attachment fetch event used when the attachment’s download progressed but is not yet complete.

    See more

    Declaration

    Objective-C

    @interface DITAttachmentFetchEventProgress : DITAttachmentFetchEvent