MetroViewModelMultibindings

Contains common multibindings for standard ViewModels and assisted ViewModels.

Extend this in a dependency graph that needs to only needs to expose viewmodel provider map multibindings. If you want MetroViewModelFactory access, extend ViewModelGraph instead.

@DependencyGraph
interface MyGraph : MetroViewModelMultibindings

Inheritors

Properties

Link copied to clipboard
@Multibinds(allowEmpty = true)
abstract val assistedFactoryProviders: Map<KClass<out ViewModel>, Provider<ViewModelAssistedFactory>>
Link copied to clipboard
@Multibinds(allowEmpty = true)
abstract val viewModelProviders: Map<KClass<out ViewModel>, Provider<ViewModel>>