SessionSavedStateHandler

Functions

Link copied to clipboard
fun attachTo(viewModel: ViewModel, savedStateHandle: SavedStateHandle): () -> Unit

Attaches a Session to a ViewModel's lifecycle and its provided SavedStateHandle. This should be called in the first line of the init call in the ViewModel.

Link copied to clipboard