Ditto
class Ditto @JvmOverloads() constructor(dependencies: DittoDependencies, identity: DittoIdentity)
Content copied to clipboard
Ditto
is the entry point for accessing Ditto-related functionality.
Parameters
dependencies
the dependencies required by the SDK to be initialised.
identity
the identity to be used to represent the connected client.
Constructors
Ditto
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
Creates a Ditto instance.
Types
Functions
getStore
Link copied to clipboard
getTransportDiagnostics
Link copied to clipboard
observePeers
Link copied to clipboard
fun observePeers(handler: (List<DittoRemotePeer>) -> Unit): DittoPeersObserver
Content copied to clipboard
fun observePeers(callback: DittoPeersObserverCallback): DittoPeersObserver
Content copied to clipboard
observePeersV2
Link copied to clipboard
fun observePeersV2(callback: DittoPeersObserverV2Callback): DittoPeersObserver
Content copied to clipboard
refreshPermissions
Link copied to clipboard
fun refreshPermissions()
Content copied to clipboard
runGarbageCollection
Link copied to clipboard
fun runGarbageCollection()
Content copied to clipboard
setAccessLicense
Link copied to clipboard
setLicenseToken
Link copied to clipboard
setTransportConfig
Link copied to clipboard
tryStartSync
Link copied to clipboard
Properties
auth
Link copied to clipboard
callback
Link copied to clipboard
sdkVersion
Link copied to clipboard
siteID
Link copied to clipboard
store
Link copied to clipboard