DITUpdateResult
@interface DITUpdateResult : NSObject
Provides information about a successful update operation on a document.
The update result can be one of the following types:
setremovedincremented
-
The update result’s type.
Check this value before using one of
asSet,asRemoved, orasIncrementedto 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
DITUpdateResultIncrementedobject.Declaration
Objective-C
- (nullable DITUpdateResultIncremented *)asIncremented;Return Value
A
DITUpdateResultIncrementedobject ornilif the update result’s type is notincremented.
DITUpdateResult Class Reference