FixedConstructorFactory

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.

Constructors

Link copied to clipboard
fun FixedConstructorFactory(vararg parameters: Any)

Functions

Link copied to clipboard
open override fun <T : ViewModel> create(modelClass: Class<T>): T

Inherited functions

Link copied to clipboard
open fun <T : ViewModel> create(modelClass: Class<T>, extras: CreationExtras): T