public class

ViewModelProvider.NewInstanceFactory

extends java.lang.Object

implements ViewModelProvider.Factory

 java.lang.Object

↳androidx.lifecycle.ViewModelProvider.NewInstanceFactory

Subclasses:

ViewModelProvider.AndroidViewModelFactory, ViewModelProviders.DefaultFactory, DocumentListModel.DocumentListModelFactory, SchemaTypeListModel.SchemaTypeListModelFactory, DocumentModel.DocumentModelFactory

Overview

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

Summary

Constructors
publicNewInstanceFactory()

Methods
public ViewModelcreate(java.lang.Class<ViewModel> modelClass)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public NewInstanceFactory()

Methods

public ViewModel create(java.lang.Class<ViewModel> modelClass)