SpreeAI

object SpreeAI

The main entry point for configuring the Spree AI SDK.

This singleton object holds the global configuration that will be used throughout the SDK. It must be initialized once, typically in your Application's onCreate method, before any other SDK components are used.

Example Usage (Kotlin DSL):

class MyApp : Application() {

override fun onCreate() {
super.onCreate()
SpreeAI.init {
partnerId = "YOUR_PARTNER_ID"
partnerName = "Your Brand Name"
theme = SpreeAI.Theme(
primaryColor = Color(0xFF123456)
)
}
}

}

Types

Link copied to clipboard
class Builder

A builder for configuring and initializing the SpreeAI singleton.

Link copied to clipboard
class Theme

A class for customizing the visual appearance (theming) of the Spree AI SDK's UI components.

Functions

Link copied to clipboard

Initializes the Spree AI SDK using a Builder instance. This is the recommended initialization method for Java consumers.

inline fun init(block: SpreeAI.Builder.() -> Unit)

Initializes the Spree AI SDK using a Kotlin DSL-style configuration block.