Disposables

Contains factory methods for creating common Disposable instances for use with the Tealium SDK.

Functions

Link copied to clipboard

Creates a CompositeDisposable which can be used to store multiple Disposable instances for bulk disposal.

Creates a CompositeDisposable which can be used to store multiple Disposable instances for bulk disposal. All methods are executed using the given scheduler to ensure operation is thread-safe.

Link copied to clipboard

Returns a Disposable implementation that:

Link copied to clipboard
fun subscription(onDispose: () -> Unit? = null): Disposable

Creates a Disposable which calls the given onDispose function when the subscription is disposed.