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

create

open fun create(config: TealiumConfig): Tealium

Creates a new Tealium instance based on the provided config.

Typical usage in an app would keep the returned instance alive for as long as the app is alive. However, the returned Tealium should be shutdown by the user when no longer required by calling either it's Tealium.shutdown method or the Tealium.Companion.shutdown.

Return

The Tealium instance ready to accept input, although if the initialization fails, any method calls made to this object will also fail.

Parameters

config

The required configuration options for this instance.


abstract fun create(config: TealiumConfig, onReady: Callback<TealiumResult<Tealium>>? = null): Tealium

Creates a new Tealium instance based on the provided config.

Typical usage in an app would keep the returned instance alive for as long as the app is alive. However, the returned Tealium should be shutdown by the user when no longer required by calling either it's Tealium.shutdown method or the Tealium.Companion.shutdown.

The onReady callback allows the caller to be notified once the instance is ready, or has failed during initialization alongside the cause of the failure.

Return

The Tealium instance ready to accept input, although if the initialization fails, any method calls made to this object will also fail.

Parameters

config

The required configuration options for this instance.

Generated by Dokka
(c) Tealium 2026