Target filter
Search Kotlin docs
  • Back
  • Tealium Prism Kotlin SDK Reference
lifecycle/com.tealium.prism.lifecycle/LifecycleSettingsBuilder

LifecycleSettingsBuilder

class LifecycleSettingsBuilder : CollectorSettingsBuilder<LifecycleSettingsBuilder>

Enables the configuration, at runtime, of Lifecycle Settings.

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

LifecycleSettingsBuilder
Link copied to clipboard
constructor()

Functions

build
Link copied to clipboard
fun build(): DataObject
setAutoTrackingEnabled
Link copied to clipboard
fun setAutoTrackingEnabled(enabled: Boolean): LifecycleSettingsBuilder

Sets optional automatic tracking of lifecycle events. If disabled, lifecycles calls must be made manually.

setDataTarget
Link copied to clipboard
fun setDataTarget(target: LifecycleDataTarget): LifecycleSettingsBuilder

Sets the target events for which to add lifecycle data to.

setEnabled
Link copied to clipboard
fun setEnabled(enabled: Boolean): LifecycleSettingsBuilder
setOrder
Link copied to clipboard
fun setOrder(order: Int): LifecycleSettingsBuilder
setRules
Link copied to clipboard
fun setRules(rules: Rule<String>): LifecycleSettingsBuilder
setSessionTimeoutInMinutes
Link copied to clipboard
fun setSessionTimeoutInMinutes(timeout: Int): LifecycleSettingsBuilder

Sets Lifecycle session timeout in minutes. Set to -1 for an infinite session duration. Any value less than or equal to -1 will also be treated as an infinite session.

setTrackedLifecycleEvents
Link copied to clipboard
fun setTrackedLifecycleEvents(events: List<LifecycleEvent>): LifecycleSettingsBuilder

Sets specific lifecycle events to be sent by the Lifecycle Module.

Generated by Dokka
(c) Tealium 2026