Other Classes

The following classes are available globally.

  • Entrypoint for accessing information about the amount of disk storage used by Ditto. This class can’t be instantiated. You can access an instance through the ditto.diskUsage API.

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

    See more
  • 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

  • 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
  • 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
  • Represents a CRDT Replicated Growable Array (RGA).

    RGAs are deprecated and you should instead use a DittoRegister containing an array.

    See more

    Declaration

    Swift

  • 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
  • The entrypoint for all actions that relate presence of other peers known by the current peer, either directly or through other peers.

    You don’t create one directly but can access it from a particular Ditto instance via its presence property.

    See more