BasicObservable

A read-only property that can be observed.

Parameters

T

the type of value to expect.

R

the type of result to expect. Must be a subclass of T.

OO

the type of ObservableOptional to store the result in.

Inheritors

Properties

Link copied to clipboard
abstract val currentOrNull: T?

The current value T or null being observed

Link copied to clipboard

The initial ObservableOptional value of T.

Functions

Link copied to clipboard
abstract operator fun getValue(thisRef: Any?, property: KProperty<*>): OO
Link copied to clipboard
abstract fun observe(onNext: (R?) -> Unit): Disposable

Creates an observation that calls onNext each time a new value is observed until the resulting Disposable is disposed