Other Classes
The following classes are available globally.
-
Represents a connection between two peers on the Ditto mesh network.
See moreDeclaration
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 moreDeclaration
Objective-C
@interface DITCounter : 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
See morecounter
properties ofDITDocumentPath
andDITMutableDocumentPath
.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
See moreregister
property ofDITMutableDocumentPath
.Declaration
Objective-C
@interface DITMutableRegister : DITRegister
-
An instance of Ditto taking part in the mesh network.
See moreDeclaration
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
See moreDITDitto
instance via itspresence
property.Declaration
Objective-C
@interface DITPresence : NSObject
-
Represents the Ditto mesh network of peers and their connections between each other. The
See morelocalPeer
is the entry point, all others are remote peers known by the local peer (either directly or via other remote peers).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 moreDeclaration
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 moreDeclaration
Objective-C
@interface DITRegister : NSObject
-
An update result when the update result’s type is
See moreset
.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
See moreincremented
.Declaration
Objective-C
@interface DITUpdateResultIncremented : DITUpdateResult
-
Represents the write transaction result that will be the value of a
DittoWriteTransactionResult
when itstype
isinserted
andasInserted
is called on it.Declaration
Objective-C
@interface DITWriteTransactionResultInserted : DITWriteTransactionResult
-
Represents the write transaction result that will be the value of a
DittoWriteTransactionResult
when itstype
isremoved
andasRemoved
is called on it.Declaration
Objective-C
@interface DITWriteTransactionResultRemoved : DITWriteTransactionResult
-
Represents the write transaction result that will be the value of a
DittoWriteTransactionResult
when itstype
isevicted
andasEvicted
is called on it.Declaration
Objective-C
@interface DITWriteTransactionResultEvicted : DITWriteTransactionResult
-
Represents the write transaction result that will be the value of a
DittoWriteTransactionResult
when itstype
isupdated
andasUpdated
is called on it.Declaration
Objective-C
@interface DITWriteTransactionResultUpdated : DITWriteTransactionResult