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

Single

interface Single<T> : Subscribable<T>

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

Functions

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
abstract fun subscribe(observer: Observer<T>): Disposable

Subscribes the given observer to receive updates

Generated by Dokka
(c) Tealium 2026