OnlinePlayground

class OnlinePlayground @JvmOverloads constructor(    val dependencies: DittoDependencies,     val appId: String,     val token: String,     val enableDittoCloudSync: Boolean = true,     val customAuthUrl: String? = null) : 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.

customAuthUrl

if specified, use a custom authentication service instead of Ditto Cloud.

Constructors

Link copied to clipboard
fun OnlinePlayground(    dependencies: DittoDependencies,     appId: String,     token: String,     enableDittoCloudSync: Boolean = true,     customAuthUrl: String? = null)

Functions

Link copied to clipboard
protected fun defaultAuthUrl(appId: String): String
Link copied to clipboard
fun requiresOfflineLicenseToken(): Boolean
Link copied to clipboard
protected fun validateResult(result: IdentityConfigResult_t): SWIGTYPE_p_CIdentityConfig

Properties

Link copied to clipboard
val appId: String
Link copied to clipboard
val customAuthUrl: String? = null
Link copied to clipboard
val dependencies: DittoDependencies
Link copied to clipboard
val enableDittoCloudSync: Boolean = true
Link copied to clipboard
val token: String