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

ViewModelProviders.DefaultFactory

public static class ViewModelProviders.DefaultFactory
extends ViewModelProvider.AndroidViewModelFactory

java.lang.Object
   ↳ androidx.lifecycle.ViewModelProvider.NewInstanceFactory
     ↳ androidx.lifecycle.ViewModelProvider.AndroidViewModelFactory
       ↳ androidx.lifecycle.ViewModelProviders.DefaultFactory


This class is deprecated.
Use ViewModelProvider.AndroidViewModelFactory

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

Summary

Public constructors

DefaultFactory(Application application)

This constructor is deprecated. Use ViewModelProvider.AndroidViewModelFactory or ViewModelProvider.AndroidViewModelFactory.getInstance(Application).

Inherited methods

Public constructors

DefaultFactory

public DefaultFactory (Application application)

This constructor is deprecated.
Use ViewModelProvider.AndroidViewModelFactory or ViewModelProvider.AndroidViewModelFactory.getInstance(Application).

Creates a AndroidViewModelFactory

Parameters
application Application: an application to pass in AndroidViewModel