ManualViewModelAssistedFactory

Marker interface for manually-controlled assisted ViewModel factories.

Unlike ViewModelAssistedFactory, this interface does not receive CreationExtras automatically. Use this when you need full control over ViewModel creation parameters or when working outside of standard ViewModel creation flows.

To retrieve a manual factory, use MetroViewModelFactory.createManuallyAssistedFactory:

val factory = metroViewModelFactory.createManuallyAssistedFactory(MyFactory::class)
val viewModel = factory().create("param1", 42)

Or in Compose with the assistedMetroViewModel overload that accepts a reified ManualViewModelAssistedFactory type:

val viewModel = assistedMetroViewModel<MyViewModel> {
create("param1", 42)
}