Builder

class Builder

Builder class for creating Aiuta instances with DSL-style configuration.

This builder ensures all required properties are set before creating an Aiuta instance.

val aiuta = Aiuta.Builder()
.apply {
authenticationStrategy = ApiKeyAuthenticationStrategy("api-key")
platformContext = context
logger = customLogger
}
.build()

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Authentication strategy for API requests.

Link copied to clipboard

Optional logger for SDK operations and debugging. If not provided, no logging will be performed.

Link copied to clipboard

Platform-specific context required for SDK operations. On Android, this should be an Android Context.

Functions

Link copied to clipboard
fun build(): Aiuta

Creates an Aiuta instance with the configured properties.