DITCounter

@interface DITCounter : NSObject

Represents a CRDT counter that can be upserted as part of a document or assigned to a property during an update of a document.

  • The value of the counter.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double value;
  • Initializes a new counter that can be used as part of a document’s content.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Returns YES if passed in counter has the same value, otherwise returns NO.

    Declaration

    Objective-C

    - (BOOL)isEqualToCounter:(nonnull DITCounter *)counter;