NavigatingViewModel
open class NavigatingViewModel<A : NavigationAction<*>>(navigator: Navigator<A>, lifecycleSubscribables: LifecycleSubscribable) : BaseLifecycleViewModel
Default LifecycleViewModel allowing navigation.
Parameters
navigator
The Navigator handling navigation.
lifecycleSubscribables
The LifecycleSubscribable to be used by this viewModel.
Properties
Link copied to clipboard
A StateFlow of the set of LifecycleSubscribable that are currently in use. Hook up your lifecycle to these LifecycleSubscribables where required.
Link copied to clipboard
CoroutineScope of the ViewModel. This scope is active until the ViewModel lifecycle is cleared.