AdaptyConfig

The main configuration object used to initialize the Adapty SDK.

Use AdaptyConfig.Builder to create and customize an instance before passing it to Adapty.activate.

Example:

val config = AdaptyConfig.Builder("YOUR_PUBLIC_SDK_KEY")
.withCustomerUserId("user_123")
.withObserverMode(false)
.withActivateUI(true)
.build()

Adapty.activate(config)

Types

Link copied to clipboard
class Builder(apiKey: String)

A builder class for constructing AdaptyConfig instances.

Link copied to clipboard
data class MediaCacheConfiguration(val memoryStorageTotalCostLimit: Int = 100 * 1024 * 1024, val memoryStorageCountLimit: Int = Int.MAX_VALUE, val diskStorageSizeLimit: Int = 100 * 1024 * 1024)

Configuration for Adapty’s in-memory and disk media caching system.

Link copied to clipboard

Defines the available Adapty backend server regions.