Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api/TealiumConfig/Builder

Builder

class Builder(val application: Application, val accountName: String, val profileName: String, val environment: String, modules: List<ModuleFactory>)

A builder class for configuring a Tealium instance.

Parameters

application

The android Application object

accountName

The Tealium account name

profileName

The Tealium profile name

environment

The Tealium environment

modules

A list of unique ModuleFactory's each one for creating a specific Module

Constructors

Builder
Link copied to clipboard
constructor(application: Application, accountName: String, profileName: String, environment: String, modules: List<ModuleFactory>)

Properties

accountName
Link copied to clipboard
val accountName: String
application
Link copied to clipboard
val application: Application
environment
Link copied to clipboard
val environment: String
profileName
Link copied to clipboard
val profileName: String

Functions

addBarrier
Link copied to clipboard
fun addBarrier(barrier: BarrierFactory): TealiumConfig.Builder

Adds a BarrierFactory that will create a ConfigurableBarrier to control the flow of dispatches to the Dispatchers.

addLoadRule
Link copied to clipboard
fun addLoadRule(id: String, rule: Rule<Condition>): TealiumConfig.Builder

Sets a load rule to be used by any of the modules by the rule's id.

addModule
Link copied to clipboard
fun addModule(module: ModuleFactory): TealiumConfig.Builder

Adds a ModuleFactory to the list of modules that need to be instantiated by the SDK.

addTransformation
Link copied to clipboard
fun addTransformation(transformation: TransformationSettings): TealiumConfig.Builder

Sets a transformation to be used by a specific transformer.

build
Link copied to clipboard
fun build(): TealiumConfig

Takes an immutable copy of any configured settings

configureCoreSettings
Link copied to clipboard
fun configureCoreSettings(enforcingCoreSettings: (CoreSettingsBuilder) -> CoreSettingsBuilder): TealiumConfig.Builder

Configures core settings related to the SDK.

enableConsentIntegration
Link copied to clipboard
@JvmOverloads
fun enableConsentIntegration(cmpAdapter: CmpAdapter, enforcedSettings: (ConsentConfigurationBuilder) -> ConsentConfigurationBuilder? = null): TealiumConfig.Builder

Enable consent integration with a CmpAdapter.

setDataSource
Link copied to clipboard
fun setDataSource(datasource: String): TealiumConfig.Builder

Sets the data source id used to identify data coming from this SDK.

setExistingVisitorId
Link copied to clipboard
fun setExistingVisitorId(existingVisitorId: String): TealiumConfig.Builder

A known existing visitor id to use on first launch instead of our anonymous id

setLogHandler
Link copied to clipboard
fun setLogHandler(logHandler: LogHandler): TealiumConfig.Builder

The LogHandler to delegate logging events to; default will write to android.util.Log

setSettingsFile
Link copied to clipboard
fun setSettingsFile(filename: String): TealiumConfig.Builder

The name of the file in the Assets folder that contains local JSON Settings.

setSettingsUrl
Link copied to clipboard
fun setSettingsUrl(url: String): TealiumConfig.Builder

The url to download Remote JSON Settings from.

Generated by Dokka
(c) Tealium 2026