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 any of the parameters are Kotlin basic types, with exception of Strings and Arrays.

Constructors

Link copied to clipboard
constructor(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
open fun <T : ViewModel> create(modelClass: KClass<T>, extras: CreationExtras): T