FixedConstructorFactory
open class FixedConstructorFactory(parameters: Any) : ViewModelProvider.Factory
Content copied to clipboard
Factory used to create view models upon re-creation of the fragment. The parameters should reflect the primary constructor of the ViewModel being recreated.
Note: Don't use this factory if one of the parameters is a primitive type.