Working With Attachments
-
Represents an attachment and can be used to insert the associated attachment into a document at a specific key.
See moreDeclaration
Objective-C
@interface DITAttachment : NSObject
-
These objects are returned by calls to
See morefetchAttachment
onDITCollection
s. They must be kept alive for as long as you wish to observe updates about the associated attachment.Declaration
Objective-C
@interface DITAttachmentFetcher : NSObject
-
Serves as a token for a specific attachment that you can pass to a call to
fetchAttachment
on aDITCollection
.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
, 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 moreDITAttachmentFetcher
through a call tofetchAttachment
on aDITCollection
instance.Declaration
Objective-C
@interface DITAttachmentFetchEvent : NSObject
-
The types of attachment fetch events that can be delivered to an attachment fetcher’s
See moreonFetchEvent
block.Declaration
Objective-C
enum DITAttachmentFetchEventType : NSUInteger {}
-
An attachment fetch event used when the attachment’s download has completed.
See moreDeclaration
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 moreDeclaration
Objective-C
@interface DITAttachmentFetchEventProgress : DITAttachmentFetchEvent