added in version 1.1.0
belongs to Maven artifact android.arch.lifecycle:extensions:1.1.1
Deprecated since version 1.1.0

ViewModelProviders.DefaultFactory

public static class ViewModelProviders.DefaultFactory
extends ViewModelProvider.AndroidViewModelFactory

java.lang.Object
   ↳ android.arch.lifecycle.ViewModelProvider.NewInstanceFactory
     ↳ android.arch.lifecycle.ViewModelProvider.AndroidViewModelFactory
       ↳ android.arch.lifecycle.ViewModelProviders.DefaultFactory


This class was deprecated in API level 1.1.0.
Use ViewModelProvider.AndroidViewModelFactory

ViewModelProvider.Factory which may create AndroidViewModel and ViewModel, which have an empty constructor.

Summary

Public constructors

ViewModelProviders.DefaultFactory(Application application)

This constructor was deprecated in API level 1.1.0. Use ViewModelProvider.AndroidViewModelFactory or getInstance(Application).

Inherited methods

Public constructors

ViewModelProviders.DefaultFactory

added in version 1.1.0
ViewModelProviders.DefaultFactory (Application application)

This constructor was deprecated in API level 1.1.0.
Use ViewModelProvider.AndroidViewModelFactory or getInstance(Application).

Creates a AndroidViewModelFactory

Parameters
application Application: an application to pass in AndroidViewModel