IviFragment

fun <VM : FrontendViewModel<P>> IviFragment(viewModelClass: KClass<VM>)

Parameters

viewModelClass

The class of the ViewModel containing the fragment's persistent state. The ViewModel will automatically be instantiated in onAttach. It will be available in onCreate through viewModel.


Deprecated

Do not directly call this constructor. It is only intended to support Android's reflection-based fragment re-creation. The information that the other constructor asks for is necessary for manually instantiating an instance of this fragment.