ViewModelStoreOwner
interface ViewModelStoreOwner
androidx.lifecycle.ViewModelStoreOwner |
Known Direct Subclasses
|
Known Indirect Subclasses
AbstractProgressFragment, AmbientModeSupport, AppCompatActivity, AppCompatDialogFragment, BaseLeanbackPreferenceFragmentCompat, BaseSupportFragment, BrandedSupportFragment, BrowseSupportFragment, DefaultProgressFragment, DetailsSupportFragment, DialogFragment, DynamicNavHostFragment, and 24 others.
|
A scope that owns ViewModelStore
.
A responsibility of an implementation of this interface is to retain owned ViewModelStore during the configuration changes and call ViewModelStore#clear()
, when this scope is going to be destroyed.
Summary
Public methods | |
---|---|
abstract ViewModelStore |
Returns owned |
Public methods
getViewModelStore
@NonNull abstract fun getViewModelStore(): ViewModelStore
Returns owned ViewModelStore
Return | |
---|---|
ViewModelStore |
a ViewModelStore |