OnlinePlaygroundV2

class OnlinePlaygroundV2 @JvmOverloads constructor(dependencies: DittoDependencies, appID: String, token: String, enableDittoCloudSync: Boolean) : DittoIdentity

Test a Ditto Cloud app with weak shared token authentication ("Playground mode"). This mode is not secure and must only be used for development.

Parameters

dependencies

the dependencies required by the SDK to be initialised.

appID

a UUID identifying this app registration on the Ditto portal, which can be found at https://portal.ditto.live

token

a shared token used to set up the OnlinePlayground session. This token is provided by the Ditto portal when setting up the application.

enableDittoCloudSync

if true, auto-configure sync with Ditto Cloud.

Constructors

OnlinePlaygroundV2
Link copied to clipboard
fun OnlinePlaygroundV2(dependencies: DittoDependencies, appID: String, token: String, enableDittoCloudSync: Boolean = true)

Functions

close
Link copied to clipboard
fun close()
requiresOfflineLicenseToken
Link copied to clipboard
fun requiresOfflineLicenseToken(): Boolean

Properties

appID
Link copied to clipboard
val appID: String
dependencies
Link copied to clipboard
val dependencies: DittoDependencies
enableDittoCloudSync
Link copied to clipboard
val enableDittoCloudSync: Boolean = true
token
Link copied to clipboard
val token: String