VMScreensMapBuilder
Builds screens navigation map same as ScreensMapBuilder, additionally allows passing ViewModel via lambda.
Has separate implementations for Android and non Android targets.
Both implementation uses ScreensMapBuilder underneath and adds support for lifecycle aware ViewModel.
Non Android implementation manually manages ViewModel persistence using ViewModelStore
and cancels ViewModel.coroutineScope whenever screen or window is disposed.
Android implementation relies on built in solutions from Google *Lifecycle framework.
Functions
Alternative implementation of screen that does not pass any arguments.
Implementation forwarded from ScreensNavigation that does not pass any arguments and does not involve ViewModel initialization.
Implementation forwarded from ScreensNavigation which does not involve ViewModel initialization.