Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 2.0.0
belongs to Maven artifact androidx.lifecycle:lifecycle-viewmodel:2.0.0-rc02

ViewModelStoreOwner

public interface ViewModelStoreOwner

androidx.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 ViewModelStore.clear(), when this scope is going to be destroyed.

Summary

Public methods

abstract ViewModelStore getViewModelStore()

Returns owned ViewModelStore

Public methods

getViewModelStore

added in version 2.0.0
public abstract ViewModelStore getViewModelStore ()

Returns owned ViewModelStore

Returns
ViewModelStore a ViewModelStore