container
Creates a container scoped with ViewModelScope.
Return
A Container implementation
Parameters
The initial state of the container.
The Settings to set the container up with.
The lambda to execute when the container is created. By default it is executed in a lazy manner after the container has been interacted with in any way.
Creates a container scoped with ViewModelScope and allows you to used the Android ViewModel's saved state support.
Provide a SavedStateHandle in order for your Parcelable state to be automatically saved as you use the container.
Return
A Container implementation
Parameters
The initial state of the container.
The SavedStateHandle corresponding to this host. Typically retrieved from the containing ViewModel
The Settings to set the container up with.
The lambda to execute when the container is created, parameter is false, or recreated, parameter is true. By default it is executed in a lazy manner after the container has been interacted with in any way.