DITUpdateResult
@interface DITUpdateResult : NSObject
Provides information about a successful update operation on a document.
The update result can be one of the following types:
setremovedreplacedWithCounterincrementedpushedpoppedinserted
-
The update result’s type.
Check this value before using one of
asSet,asRemoved,asReplacedWithCounter,asIncremented,asPushed, orasPoppedto ensure that you get the correct richer update result object.Declaration
Objective-C
@property (nonatomic, readonly) DITUpdateResultType type; -
The ID of the document that was updated.
Declaration
Objective-C
@property (nonatomic, readonly) DITDocumentID *_Nonnull docID; -
The path to the key in the document that was updated.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull path; -
Return the update result object as a
DITUpdateResultSetobject.Declaration
Objective-C
- (nullable DITUpdateResultSet *)asSet;Return Value
A
DITUpdateResultSetobject ornilif the update result’s type is notset. -
Return the update result object as a
DITUpdateResultRemovedobject.Declaration
Objective-C
- (nullable DITUpdateResultRemoved *)asRemoved;Return Value
A
DITUpdateResultRemovedobject ornilif the update result’s type is notremoved. -
Return the update result object as a
DITUpdateResultReplacedWithCounterobject.Declaration
Objective-C
- (nullable DITUpdateResultReplacedWithCounter *)asReplacedWithCounter;Return Value
A
DITUpdateResultReplacedWithCounterobject ornilif the update result’s type is notreplacedWithCounter. -
Return the update result object as a
DITUpdateResultIncrementedobject.Declaration
Objective-C
- (nullable DITUpdateResultIncremented *)asIncremented;Return Value
A
DITUpdateResultIncrementedobject ornilif the update result’s type is notincremented. -
Return the update result object as a
DITUpdateResultPushedobject.Declaration
Objective-C
- (nullable DITUpdateResultPushed *)asPushed;Return Value
A
DITUpdateResultPushedobject ornilif the update result’s type is notpushed. -
Return the update result object as a
DITUpdateResultPoppedobject.Declaration
Objective-C
- (nullable DITUpdateResultPopped *)asPopped;Return Value
A
DITUpdateResultPoppedobject ornilif the update result’s type is notpopped. -
Return the update result object as a
DITUpdateResultInsertedobject.Declaration
Objective-C
- (nullable DITUpdateResultInserted *)asInserted;Return Value
A
DITUpdateResultInsertedobject ornilif the update result’s type is notinserted.
DITUpdateResult Class Reference