Builder

class Builder(context: Context)

Builds an SdkConfig.

Parameters

context

any Context; only its application context is retained, so passing an Activity here leaks nothing.

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard

The license key you were issued.

Link copied to clipboard

Freezes everything set so far into an SdkConfig.

Link copied to clipboard

The context the SDK runs its background work on.

Link copied to clipboard

Which backend to talk to. Defaults to CgsEnvironment.PRODUCTION.

Link copied to clipboard

Where the SDK's diagnostics go. Defaults to NoopLogger — nothing is logged unless you ask for it.

Link copied to clipboard
fun onSessionLost(onSessionLost: () -> Unit): SdkConfig.Builder

Called when the session is lost for good and cannot be refreshed — a revoked token, an account closed on your side.

Link copied to clipboard

The product name issued to you alongside the license. It identifies which catalogue and which entitlements your app is served.