Ditto
Ditto
is the entry point for accessing Ditto-related functionality in the Android SDK.
Parameters
the dependencies required by the SDK to be initialised.
the identity to be used to represent the connected client.
Constructors
Creates a Ditto instance.
Types
Functions
Creates a default Android transport config which has all transports disabled.
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.
Provide a hint to Ditto that app permissions may have changed.
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 a Ditto
instance by setting a license token. You cannot sync with Ditto
before you have activated it.
Activate a Ditto
instance by setting a license token. You cannot sync with Ditto
before you have activated it.
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.
Starts the network transports. Ditto will connect to other devices and sync with them where appropriate.