Initial

interface Initial<R : T, T>

Marks a class that has an initial ObservableOptional value, where T is the expected input value and R is its result.

Parameters

T

the type of value to expect.

R

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

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 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