DITMutableCounter
@interface DITMutableCounter : DITCounter
Represents a mutable CRDT counter that can be incremented by a specific amount while updating a document.
This class can’t be instantiated directly, it’s returned automatically for any counter property within an update block.
See also the counter
properties of DITDocumentPath
and
DITMutableDocumentPath
.
-
Unavailable
Undocumented
Declaration
Objective-C
- (nonnull instancetype)init;
-
Increments the counter by
amount
, which can be any valid 64 bit float. Only valid within the closure ofDITCollection
‘supdateWithBlock:
method, otherwise an exception is thrown.Declaration
Objective-C
- (void)incrementBy:(double)amount;