ModuleManager

interface ModuleManager

The ModuleManager is responsible for managing Module implementations throughout the Tealium instance lifecycle.

This class provides properties for interacting with other Module implementations, either by fetching a specific Module implementation of by observing one of its properties.

Properties

Link copied to clipboard

Observable stream of all Module implementations in the system.

Functions

Link copied to clipboard
abstract fun <T : Module> getModuleOfType(clazz: Class<T>): T?
abstract fun <T : Module> getModuleOfType(clazz: Class<T>, callback: Callback<T?>)

Returns the first Module implementation that implements or extends the given clazz.

Link copied to clipboard
abstract fun <T : Module> observeModule(clazz: Class<T>): Observable<T?>
abstract fun <T : Module, R> observeModule(clazz: Class<T>, transform: (T) -> Observable<R>): Observable<R>

Observe an observable of the Module regardless of if the Module is currently enabled or not.