Spree AI
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)
)
}
}
}Content copied to clipboard
Types
Functions
Link copied to clipboard
Initializes the Spree AI SDK using a Builder instance. This is the recommended initialization method for Java consumers.
Initializes the Spree AI SDK using a Kotlin DSL-style configuration block.