Dash

object Dash

Entry point to Dash SDK.

init is required to be called from Application.onCreate before any interaction with Dash SDK.

Properties

Link copied to clipboard

Currently used DashConfig. Only available after init.

Link copied to clipboard

Controller for a Dash instance running in the host application.

Link copied to clipboard

Defines whether Dash has already been initialized in this application process.

Functions

Link copied to clipboard

Applies changes found in the provided update. To create an update, reference config and use DashConfig.update.

Creates a DashConfig.Update and immediately applies the changes.

Link copied to clipboard
fun init(config: DashConfig)
fun init(context: Context, accessToken: String, func: DashConfig.Builder.() -> Unit = {})

Call this initialization function from Application.onCreate and provide the configuration.

Link copied to clipboard

Use to observe changes of DashConfig.