Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.settings.modules/CollectSettingsBuilder

CollectSettingsBuilder

class CollectSettingsBuilder : DispatcherSettingsBuilder<Mappings, CollectSettingsBuilder> , MultipleInstancesModuleSettingsBuilder<CollectSettingsBuilder>

Enables the configuration, at runtime, of the Collect Module.

Note. Any configuration set here will override any configuration provided by the local or remote settings files and will no longer be overridable remotely.

Constructors

CollectSettingsBuilder
Link copied to clipboard
constructor()

Functions

build
Link copied to clipboard
fun build(): DataObject

Returns the complete Module settings as configured by this ModuleSettingsBuilder.

setBatchUrl
Link copied to clipboard
fun setBatchUrl(url: String): CollectSettingsBuilder

Sets the url to use when sending batches of events

setDomain
Link copied to clipboard
fun setDomain(domain: String): CollectSettingsBuilder

Sets the domain to use in place of the default single and batch URLs.

setEnabled
Link copied to clipboard
fun setEnabled(enabled: Boolean): CollectSettingsBuilder

Sets the resulting Module to be permanently enabled/disabled. Local/Remote settings sources will be overridden by this

setMappings
Link copied to clipboard
fun setMappings(mappings: Callback<Mappings>): CollectSettingsBuilder
fun setMappings(mappings: Mappings.() -> Unit): CollectSettingsBuilder

Set the mappings for this module.

setModuleId
Link copied to clipboard
open override fun setModuleId(moduleId: String): CollectSettingsBuilder

Overrides the Module.id for cases where multiple instances of a Module are supported.

setOrder
Link copied to clipboard
fun setOrder(order: Int): CollectSettingsBuilder

Sets the order in which the Module needs to be initialized.

setProfile
Link copied to clipboard
fun setProfile(profile: String): CollectSettingsBuilder

Sets the Tealium profile to use when sending the event. Use this when the profile differs to the one configured in the TealiumConfig

setRules
Link copied to clipboard
fun setRules(rules: Rule<String>): CollectSettingsBuilder

Sets the rules that this Module needs to match in order to process an event (e.g. collection or dispatching)

setUrl
Link copied to clipboard
fun setUrl(url: String): CollectSettingsBuilder

Sets the url to use when sending individual events

Generated by Dokka
(c) Tealium 2026