MimiObservable

MimiObservable

Defines a value which may change over time.

Important: This interface is not stable for inheritance, as new methods may be added, but is stable for use.

Since

5.0.0

Parameters

T
  • generic type of the value.

Properties

Link copied to clipboard
val state: T

Functions

Link copied to clipboard
fun <T> MimiObservable<T>.asFlow(coroutineScope: CoroutineScope): Flow<T>

AsFlow - a convenience extension for MimiObservable.observe

Link copied to clipboard
fun <T> MimiObservable<T>.asLiveData(coroutineScope: CoroutineScope): LiveData<T>

AsLiveData - a convenience extension for MimiObservable.observe

Link copied to clipboard
suspend fun observe(observer: MimiObserver<T>)

Observe

Link copied to clipboard
inline suspend fun <T> MimiObservable<T>.observe(tag: String? = null, crossinline action: suspend (value: T) -> Unit)

Observe - a convenience extension for MimiObservable.observe

Link copied to clipboard
fun <T> MimiObservable<AsyncState<T>>.valueAsLiveData(coroutineScope: CoroutineScope): LiveData<T>

ValueAsLiveData - a convenience extension for MimiObservable.observe