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

CoreSettingsBuilder

class CoreSettingsBuilder

Builder class for configuring core settings throughout the SDK.

Settings configured here will override similar values that have come from other settings sources - e.g. local or remote JSON settings - and will therefore not be overrideable remotely.

Constructors

CoreSettingsBuilder
Link copied to clipboard
constructor()

Functions

build
Link copied to clipboard
fun build(): DataObject
setExpiration
Link copied to clipboard
fun setExpiration(expiration: TimeFrame): CoreSettingsBuilder

Sets the maximum amount of time that a queued event remains valid for.

setLogLevel
Link copied to clipboard
fun setLogLevel(logLevel: LogLevel): CoreSettingsBuilder

Sets the minimum LogLevel that a log entry need to be before it gets written to the android.util.Log.

setMaxQueueSize
Link copied to clipboard
fun setMaxQueueSize(queueSize: Int): CoreSettingsBuilder

Sets the maximum queue size to maintain when the SDK is unable to fully process events. e.g. where connectivity may be unavailable for extended periods, events will be queued until they can be processed safely.

setRefreshInterval
Link copied to clipboard
fun setRefreshInterval(refreshInterval: TimeFrame): CoreSettingsBuilder

Sets the minimum amount of time before remote SDK settings should be refreshed.

setSessionTimeout
Link copied to clipboard
fun setSessionTimeout(sessionTimeout: TimeFrame): CoreSettingsBuilder

Sets the session length. Sessions are extended upon each tracked event, so this sessionTimeout is the time of inactivity that needs to pass before a session is considered ended.

setVisitorIdentityKey
Link copied to clipboard
fun setVisitorIdentityKey(key: String): CoreSettingsBuilder

Sets the visitor identity key to monitor from the DataLayer. Changes to the value found at this key signify that the visitor has changed and will trigger visitor id switching.

Generated by Dokka
(c) Tealium 2026