valueAsLiveData

fun <T> MimiObservable<AsyncState<T>>.valueAsLiveData(coroutineScope: CoroutineScope): LiveData<T>

ValueAsLiveData - a convenience extension for MimiObservable.observe

Return

a LiveData representation of the MimiObservable's AsyncState.value

Parameters

coroutineScope
  • The coroutineScope the MimiObservable.observe will be executed on. It will be executed as long as coroutineScope runs.