added in version 1.0.0
belongs to Maven artifact android.arch.lifecycle:viewmodel:1.1.1
belongs to Maven artifact android.arch.lifecycle:viewmodel:1.1.1
ViewModelStoreOwner
public
interface
ViewModelStoreOwner
android.arch.lifecycle.ViewModelStoreOwner |
A scope that owns ViewModelStore
.
A responsibility of an implementation of this interface is to retain owned ViewModelStore
during the configuration changes and call clear()
, when this scope is
going to be destroyed.
Summary
Public methods | |
---|---|
abstract
ViewModelStore
|
getViewModelStore()
Returns owned |
Public methods
getViewModelStore
added in version 1.0.0
ViewModelStore getViewModelStore ()
Returns owned ViewModelStore
Returns | |
---|---|
ViewModelStore |
a ViewModelStore
|
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