Package org.orbitmvi.orbit.viewmodel

Types

AndroidIdlingResource
Link copied to clipboard
class AndroidIdlingResource : IdlingResource

Functions

container
Link copied to clipboard
fun <STATE : Any, SIDE_EFFECT : Any> ViewModel.container(initialState: STATE, settings: Container.Settings = Container.Settings(), onCreate: (STATE) -> Unit? = null): Container<STATE, SIDE_EFFECT>
Creates a container scoped with ViewModelScope.
fun <STATE : Parcelable, SIDE_EFFECT : Any> ViewModel.container(initialState: STATE, savedStateHandle: SavedStateHandle, settings: Container.Settings = Container.Settings(idlingRegistry = AndroidIdlingResource()), onCreate: (STATE) -> Unit? = null): Container<STATE, SIDE_EFFECT>
Creates a container scoped with ViewModelScope and allows you to used the Android ViewModel's saved state support.