InstanceManager

interface InstanceManager

An InstanceManager has methods to manage the starting and stopping of multiple Tealium instances

Only a single instance per Tealium Account-Profile can be running at any given time. Therefore calling create with a TealiumConfig for the same account and profile combination will return a Tealium for interacting with an existing instance.

Inheritors

Functions

Link copied to clipboard
open fun create(config: TealiumConfig): Tealium
abstract fun create(config: TealiumConfig, onReady: Callback<TealiumResult<Tealium>>? = null): Tealium

Creates a new Tealium instance based on the provided config.

Link copied to clipboard
open fun get(config: TealiumConfig, callback: Callback<Tealium?>)

Retrieves an existing Tealium instance, if one has already been created using its TealiumConfig.key

abstract fun get(instanceKey: String, callback: Callback<Tealium?>)

Retrieves an existing Tealium instance, if one has already been created, using the given instanceKey

Link copied to clipboard
open fun shutdown(tealium: Tealium)

Shuts down the Tealium instance.

abstract fun shutdown(instanceKey: String)

Shuts down the Tealium instance identified by the instanceKey