Other Classes

The following classes are available globally.

  • An observation token returned by any observation API in the Ditto SDK. Retain this object to continue receiving updates.

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

    public class DittoCounter
    extension DittoCounter: Equatable
  • 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 DittoDocumentPath and DittoMutableDocumentPath.

    See more

    Declaration

    Swift

    public class DittoMutableCounter : DittoCounter
  • Represents a mutable CRDT Replicated Growable Array (RGA) that can be updated as part of updating a document.

    This class can’t be instantiated directly. It’s returned automatically for any RGA property within an update block.

    See also the rga property of DittoMutableDocumentPath.

    See more

    Declaration

    Swift

    public class DittoMutableRGA
  • Represents a mutable CRDT register that can be updated while updating a document.

    This class can’t be instantiated directly. It’s returned automatically for any register property within an update block.

    See also the register property of DittoMutableDocumentPath.

    See more

    Declaration

    Swift

    public class DittoMutableRegister
  • 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.

    See more

    Declaration

    Swift

    public class DittoRGA
    extension DittoRGA: Equatable
  • Represents a CRDT register that can be upserted as part of a document or assigned to a property during an update of a document.

    See more

    Declaration

    Swift

    public class DittoRegister