Observer

interface Observer

Base interface for event observers. When an Observer is subscribed to a source through its subscribe method, the source calls onSubscribe method with a Disposable that allows disposing the source at any time. All methods must be called synchronously, never concurrently.

Inheritors

Functions

Link copied to clipboard
abstract fun onSubscribe(disposable: Disposable)

Provides the Observer with a Disposable. This method must be called before any other methods.