DITRGA

@interface DITRGA : NSObject

Represents a CRDT Replicated Growable Array (RGA) that can be upserted as part of a document or assigned to a property during an update of a document.

  • The array representation of the RGA.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<id> *_Nonnull value;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Deprecated

    DITRGA usage should be replaced. Use arrays inside DITRegisters instead.

    Initializes a new RGA that can be used as part of a document’s content.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithArray:(nonnull NSArray<id> *)array;

    Parameters

    array

    the array to use as the RGA’s representation.

  • Returns YES if passed in RGA has the same value, otherwise returns NO.

    Declaration

    Objective-C

    - (BOOL)isEqualToRGA:(nonnull DITRGA *)rga;