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
fun OfflinePlayground(    dependencies: DittoDependencies,     appId: String? = null,     siteId: BigInteger? = null)

Functions

Link copied to clipboard
fun requiresOfflineLicenseToken(): Boolean

Properties

Link copied to clipboard
val appId: String? = null
Link copied to clipboard
val dependencies: DittoDependencies
Link copied to clipboard
val siteId: BigInteger? = null