OfflinePlayground

class OfflinePlayground @JvmOverloads constructor(val dependencies: DittoDependencies, val appId: String? = null, val siteId: BigInteger? = null) : DittoIdentity

Develop peer-to-peer apps with no cloud connection. This mode offers no security and must only be used for development. In this mode, any string can be used as the name of the app.

Parameters

dependencies

the dependencies required by the SDK to be initialised.

appId

the name of the app. If you are developing multiple apps, use distinct names to ensure they do not attempt to connect and sync with each other.

siteId

the site identifier of the peer.

Constructors

Link copied to clipboard
constructor(dependencies: DittoDependencies, appId: String? = null, siteId: BigInteger? = null)

Properties

Link copied to clipboard
val appId: String? = null
Link copied to clipboard
Link copied to clipboard

Functions