orbitContainer
Creates a container scoped with ViewModelScope with Android ViewModel's saved state support for Parcelable state.
Provide a SavedStateHandle in order for your Parcelable state to be automatically saved as you use the container.
Return
An OrbitContainer implementation
Parameters
The initial state of the container.
The SavedStateHandle corresponding to this host.
This builder can be used to change the container's settings.
The intent to execute when the container is created
Creates a container scoped with ViewModelScope with external state transformation and Android ViewModel's saved state support for Parcelable state.
Provide a SavedStateHandle in order for your Parcelable state to be automatically saved as you use the container.
Return
An OrbitContainer implementation
Parameters
The initial state of the container.
The SavedStateHandle corresponding to this host.
The function that transforms the internal state to the external state.
This builder can be used to change the container's settings.
The intent to execute when the container is created
Creates a container scoped with ViewModelScope.
Return
An OrbitContainer implementation
Parameters
The initial state of the container.
This builder can be used to change the container's settings.
The intent to execute when the container is created
Creates a container scoped with ViewModelScope with external state transformation.
Return
An OrbitContainer implementation
Parameters
The initial state of the container.
The function that transforms the internal state to the external state.
This builder can be used to change the container's settings.
The intent to execute when the container is created
Creates a container scoped with ViewModelScope with saved state support.
Provide a SavedStateHandle in order for your state to be automatically saved as you use the container.
Return
An OrbitContainer implementation
Parameters
The initial state of the container.
The SavedStateHandle corresponding to this host. Typically retrieved from the containing ViewModel
The KSerializer to use for serializing and deserializing state.
This builder can be used to change the container's settings.
The intent to execute when the container is created
Creates a container scoped with ViewModelScope with external state transformation and saved state support.
Provide a SavedStateHandle in order for your state to be automatically saved as you use the container.
Return
An OrbitContainer implementation
Parameters
The initial state of the container.
The SavedStateHandle corresponding to this host.
The KSerializer to use for serializing and deserializing state.
The function that transforms the internal state to the external state.
This builder can be used to change the container's settings.
The intent to execute when the container is created