ViewModelProvider.NewInstanceFactory



Simple factory, which calls empty constructor on the give class.

Summary

Public constructors

android

Public functions

open T
<T : ViewModel> create(modelClass: KClass<T>, extras: CreationExtras)
android

Public constructors

NewInstanceFactory

NewInstanceFactory()

Public functions

create

open fun <T : ViewModel> create(modelClass: KClass<T>, extras: CreationExtras): T