Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

ViewModelStoreOwner

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

Returns owned ViewModelStore

Public methods

getViewModelStore

@NonNull abstract fun getViewModelStore(): ViewModelStore

Returns owned ViewModelStore

Return
ViewModelStore a ViewModelStore