-
public final class ViewModelFactoryKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends ViewModel> ViewModelProvider.FactorycreateViewModelFactory(Function0<T> factory)Creates a ViewModelProvider.Factory for a single type of ViewModel using the result of the given factory closure. -
-
Method Detail
-
createViewModelFactory
final static <T extends ViewModel> ViewModelProvider.Factory createViewModelFactory(Function0<T> factory)
Creates a ViewModelProvider.Factory for a single type of ViewModel using the result of the given factory closure.
-
-
-
-