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

onReady

abstract fun onReady(callback: Callback<Tealium>)

Executes the provided callback when Tealium is ready for use, from the Tealium internal thread.

Usage of this method is incentivized in case you want to call multiple Tealium methods in a row. Every one of those methods, if called from a different thread, will cause the execution to move into our own internal queue, causing overhead. Calling those methods from the callback of this method, instead, will skip all of those context switches and perform the operations synchronously onto our thread.

Parameters

callback

A closure that is called with the Tealium instance when it's ready. In case of an initialization error the completion won't be called at all.

Generated by Dokka
(c) Tealium 2026