Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.
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