DITAttachmentStatus
@interface DITAttachmentStatus : NSObject
A representation of the status of an attachment.
An attachment’s status can be one of three types: completed, incomplete, or deleted.
Updates to an attachment’s status are delivered by registering a DITAttachmentFetcher through a
call to fetchAttachment on a DITCollection instance.
-
The attachment staus’ type.
Check this value before using one of
asCompleted,asIncomplete, orasDeletedto ensure that you get a richer attachment status object of the correct type.Declaration
Objective-C
@property (nonatomic, readonly) DITAttachmentStatusType type; -
Return the attachment status object as a
DITAttachmentStatusCompletedobject.Declaration
Objective-C
- (nullable DITAttachmentStatusCompleted *)asCompleted;Return Value
A
DITAttachmentStatusCompletedobject ornilif the attachment’s status is not completed. -
Return the attachment status object as a
DITAttachmentStatusIncompleteobject.Declaration
Objective-C
- (nullable DITAttachmentStatusIncomplete *)asIncomplete;Return Value
A
DITAttachmentStatusIncompleteobject ornilif the attachment’s status is not incomplete. -
Return the attachment status object as a
DITAttachmentStatusDeletedobject.Declaration
Objective-C
- (nullable DITAttachmentStatusDeleted *)asDeleted;Return Value
A
DITAttachmentStatusDeletedobject ornilif the attachment’s status is not deleted.
DITAttachmentStatus Class Reference