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 |
Inherited methods | |
---|---|
Public constructors
ViewModelProviders.DefaultFactory
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 |
Annotations
Interfaces
Classes
- AndroidViewModel
- Lifecycle
- LifecycleRegistry
- LifecycleService
- LiveData
- LiveDataReactiveStreams
- MediatorLiveData
- MutableLiveData
- ProcessLifecycleOwner
- ServiceLifecycleDispatcher
- Transformations
- ViewModel
- ViewModelProvider
- ViewModelProvider.AndroidViewModelFactory
- ViewModelProvider.NewInstanceFactory
- ViewModelProviders
- ViewModelProviders.DefaultFactory
- ViewModelStore
- ViewModelStores
Enums