Target filter
Search Kotlin docs
  • Back
  • Tealium Prism Kotlin SDK Reference
core/com.tealium.prism.core.api.pubsub

Package-level declarations

Types

BiConsumer
Link copied to clipboard
fun interface BiConsumer<T, R>

Reimplementation of the Java SDK's java.util.function.BiConsumer that isn't supported across all Android API levels.

CompositeDisposable
Link copied to clipboard
interface CompositeDisposable : Disposable

Defines a Disposable implementation that can dispose of multiple other Disposable implementations in one go.

Consumer
Link copied to clipboard
fun interface Consumer<T>

Reimplementation of the Java SDK's java.util.function.Consumer that isn't supported across all Android API levels.

Disposable
Link copied to clipboard
interface Disposable

Defines a resource that can be disposed.

Disposables
Link copied to clipboard
object Disposables

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

Observable
Link copied to clipboard
interface Observable<T> : Subscribable<T>

Base class for observable implementations - provides methods for built in intermediate operations.

Observables
Link copied to clipboard
object Observables

Factory object for creating common Observable and Subject implementations.

ObservableState
Link copied to clipboard
interface ObservableState<T> : Observable<T> , SubscribableState<T>

ObservableState is a read-only wrapper of a StateSubject. It can be used to provide assurances that the Subject itself cannot be accidentally retrieved via casting, but that accessors can still subscribe to the underlying Subject.

Observer
Link copied to clipboard
interface Observer<T>

Interface representing an Observer of items emitted by an Observable.

ReplaySubject
Link copied to clipboard
interface ReplaySubject<T> : Subject<T>

A ReplaySubject is a specialized Subject that also maintains the latest N emissions in a cache. Upon subscription, all values in the cache will be emitted to the subscriber.

Single
Link copied to clipboard
interface Single<T> : Subscribable<T>

A Subscribable implementation whereby only a single result is expected to be emitted to the subscriber.

SingleResult
Link copied to clipboard
typealias SingleResult<T> = Single<TealiumResult<T>>

A Single that completes with a TealiumResult.

StateSubject
Link copied to clipboard
interface StateSubject<T> : Subject<T> , ObservableState<T>

A StateSubject is a specialized Subject that also maintains the latest emission as state, retrievable via the value getter.

Subject
Link copied to clipboard
interface Subject<T> : Observable<T> , Observer<T>

A Subject is an Observable that can be used to publish new values to any subscribers, where an Observable cannot.

Subscribable
Link copied to clipboard
interface Subscribable<T>

A Subscribable object allows you to subscribe an Observer to receive updates from a specific source. Each updated value will be provided through the given Observer.onNext method.

SubscribableState
Link copied to clipboard
interface SubscribableState<T> : Subscribable<T>

A SubscribableState object allows you to subscribe an Observer to receive updates from a specific source - as with Subscribable. Each updated value will be provided through the given Observer.onNext method.

Functions

addTo
Link copied to clipboard
fun <T : Disposable> T.addTo(container: CompositeDisposable): T

Add the current disposable to a specific container for easier cleanup.

filterNotNull
Link copied to clipboard
fun <T> Observable<T?>.filterNotNull(): Observable<T>

Convenience method for converting an observable of nullable items, into an observable of non-nullable items.

mapToUnit
Link copied to clipboard
fun <T> Observable<T>.mapToUnit(): Observable<Unit>

Convenience method that maps any incoming emission to Unit

merge
Link copied to clipboard
fun <T> Iterable<Observable<T>>.merge(): Observable<T>

Convenience method for merging a Iterable group of Observables of the same type.

onFailure
Link copied to clipboard
fun <T : TealiumResult<R>, R> Single<T>.onFailure(handler: Callback<Exception>): Disposable

Subscribes a handler for handling only the failure element of this Single.

onSuccess
Link copied to clipboard
fun <T : TealiumResult<R>, R> Single<T>.onSuccess(handler: Callback<R>): Disposable

Subscribes a handler for handling only the successful element of this Single.

subscribe
Link copied to clipboard
fun <T> Observable<T>.subscribe(composite: CompositeDisposable, onNext: Consumer<T>): Disposable

Subscribes the given onNext to receive updates. The subscription is stored in the given composite

fun <T> Observable<T>.subscribe(composite: CompositeDisposable, observer: Observer<T>): Disposable

Subscribes the given observer to receive updates, including an Observer.onComplete notification when the upstream source terminates. The subscription is stored in the given composite

fun <T> Observable<T>.subscribe(composite: CompositeDisposable, onNext: Consumer<T>, onComplete: Runnable): Disposable

Subscribes the given onNext to receive updates and the given onComplete to receive the Observer.onComplete signal. The subscription is stored in the given composite

Generated by Dokka
(c) Tealium 2026