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

Observer

interface Observer<T>

Interface representing an Observer of items emitted by an Observable.

Implementors need to handle both onNext for each emitted value and onComplete when the upstream source has terminated. No further onNext emissions should be delivered after the onComplete has been propagated downstream.

Any Disposable subscriptions held to upstream Observables should be disposed of after onComplete has been emitted downstream.

Inheritors

Subject

Functions

onComplete
Link copied to clipboard
abstract fun onComplete()

Called when the upstream source has terminated and no further onNext calls will be made.

onNext
Link copied to clipboard
abstract fun onNext(value: T)

Called whenever there has been a new item emitted by the upstream Observable.

Generated by Dokka
(c) Tealium 2026