Other Classes

The following classes are available globally.

  • Represents a connection between two peers on the Ditto mesh network.

    See more

    Declaration

    Objective-C

    @interface DITConnection : NSObject <NSCopying>
  • 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

    Objective-C

    @interface DITCounter : NSObject
  • 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

    Declaration

    Objective-C

    @interface DITDiskUsage : NSObject
  • A directory or file in the Ditto working directory. Directories can be traversed by accessing the childItems property. Files won’t have any children.

    See more

    Declaration

    Objective-C

    @interface DITDiskUsageItem : NSObject <NSCopying>
  • A handle used to control disk usage observation.

    See more

    Declaration

    Objective-C

    @interface DITDiskUsageObserverHandle : NSObject
  • 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.

    See more

    Declaration

    Objective-C

    @interface DITMutableCounter : DITCounter
  • 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 DITMutableDocumentPath.

    See more

    Declaration

    Objective-C

    @interface DITMutableRegister : DITRegister
  • An instance of Ditto taking part in the mesh network.

    See more

    Declaration

    Objective-C

    @interface DITPeer : NSObject <NSCopying>
  • 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 DITDitto instance via its presence property.

    See more

    Declaration

    Objective-C

    @interface DITPresence : NSObject
  • Represents the Ditto mesh network of peers and their connections between each other. The localPeer is the entry point, all others are remote peers known by the local peer (either directly or via other remote peers).

    See more

    Declaration

    Objective-C

    @interface DITPresenceGraph : NSObject <NSCopying>
  • 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

    Objective-C

    @interface DITRGA : NSObject
  • 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

    Objective-C

    @interface DITRegister : NSObject
  • An update result when the update result’s type is set.

    See more

    Declaration

    Objective-C

    @interface DITUpdateResultSet : DITUpdateResult
  • An update result when the update result’s type is removed.

    Declaration

    Objective-C

    @interface DITUpdateResultRemoved : DITUpdateResult
  • An update result when the update result’s type is incremented.

    See more

    Declaration

    Objective-C

    @interface DITUpdateResultIncremented : DITUpdateResult
  • Represents the write transaction result that will be the value of a DittoWriteTransactionResult when its type is inserted and asInserted is called on it.

    Declaration

    Objective-C

    @interface DITWriteTransactionResultInserted : DITWriteTransactionResult
  • Represents the write transaction result that will be the value of a DittoWriteTransactionResult when its type is removed and asRemoved is called on it.

    Declaration

    Objective-C

    @interface DITWriteTransactionResultRemoved : DITWriteTransactionResult
  • Represents the write transaction result that will be the value of a DittoWriteTransactionResult when its type is evicted and asEvicted is called on it.

    Declaration

    Objective-C

    @interface DITWriteTransactionResultEvicted : DITWriteTransactionResult
  • Represents the write transaction result that will be the value of a DittoWriteTransactionResult when its type is updated and asUpdated is called on it.

    Declaration

    Objective-C

    @interface DITWriteTransactionResultUpdated : DITWriteTransactionResult