Ditto Base
Properties
The absolute path to the persistence directory used by this Ditto instance to persist data.
Provides access to authentication information and methods for logging on to Ditto Cloud.
An optional callback that will be called with lifecycle events relating to the SDK.
Returns the configuration used to initialize this Ditto instance.
Configure a custom identifier for this peer.
A flag indicating whether or not sync is active. Use startSync() to activate and stopSync() to deactivate sync.
Path to the persistence directory in use.
A string of version metadata for the Ditto SDK. Example: And4.4.3_73d36
The site identifier component of the identity in use.
Provides access to the SDK's small peer info functionality.
Functions
Disable sync with peers running version 3 or lower of the Ditto SDK.
Request bulk status information about the transports. This is mostly intended for statistical or debugging purposes.
Request information about Ditto peers connected to this device.
Request information about Ditto peers in the local peer-to-peer network. The V2 observer differs from observePeers by providing not just information about the immediate peers, but also multihop information from other peers not immediately connected. V2 presence therefore offers a more complete view of the local peer-to-peer network.
Removes all sync metadata for any remote peers which aren't currently connected. This method shouldn't usually be called. Manually running garbage collection often will result in slower sync times. Ditto automatically runs a garbage a collection process in the background at optimal times.
Activate an offline Ditto instance by setting a license token. You cannot sync with Ditto before you have activated it. The offline license token is only valid for manual, offlinePlayground, and sharedKey identities.