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
, orasDeleted
to 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
DITAttachmentStatusCompleted
object.Declaration
Objective-C
- (nullable DITAttachmentStatusCompleted *)asCompleted;
Return Value
A
DITAttachmentStatusCompleted
object ornil
if the attachment’s status is not completed. -
Return the attachment status object as a
DITAttachmentStatusIncomplete
object.Declaration
Objective-C
- (nullable DITAttachmentStatusIncomplete *)asIncomplete;
Return Value
A
DITAttachmentStatusIncomplete
object ornil
if the attachment’s status is not incomplete. -
Return the attachment status object as a
DITAttachmentStatusDeleted
object.Declaration
Objective-C
- (nullable DITAttachmentStatusDeleted *)asDeleted;
Return Value
A
DITAttachmentStatusDeleted
object ornil
if the attachment’s status is not deleted.