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.
Functions
Properties
Extensions
Link copied to clipboard
fun <T> MimiObservable<T>.asFlow(coroutineScope: CoroutineScope): Flow<T>
Content copied to clipboard
AsFlow - a convenience extension for MimiObservable.observe
Link copied to clipboard
fun <T> MimiObservable<T>.asLiveData(coroutineScope: CoroutineScope): LiveData<T>
Content copied to clipboard
AsLiveData - a convenience extension for MimiObservable.observe
Link copied to clipboard
inline suspend fun <T> MimiObservable<T>.observe(tag: String? = null, crossinline action: suspend (value: T) -> Unit)
Content copied to clipboard
Observe - a convenience extension for MimiObservable.observe
Link copied to clipboard
fun <T> MimiObservable<AsyncState<T>>.valueAsLiveData(coroutineScope: CoroutineScope): LiveData<T>
Content copied to clipboard
ValueAsLiveData - a convenience extension for MimiObservable.observe