Package io.mimi.sdk.core.common
Types
Link copied to clipboard
data class AsyncState<T> @MsdkInternalApi constructor(val value: T, val loadingState: LoadingState = LoadingState.Done)
Content copied to clipboard
AsyncState - Represents a state value which is asynchronously updated.
Link copied to clipboard
LoadingState
Link copied to clipboard
MimiObservable
Link copied to clipboard
MimiObserver
Functions
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