Package-level declarations

Types

Link copied to clipboard
data class AsyncState<T> @MsdkInternalApi constructor(val value: T, val loadingState: LoadingState = LoadingState.Done)

AsyncState - Represents a state value which is asynchronously updated.

Link copied to clipboard
sealed class LoadingState

LoadingState

Link copied to clipboard

MimiObservable

Link copied to clipboard
interface MimiObserver<T>

MimiObserver

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