Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.
added in version 1.1.0
belongs to Maven artifact android.arch.lifecycle:extensions:1.1.1

ViewModelStores

public class ViewModelStores
extends Object

java.lang.Object
   ↳ android.arch.lifecycle.ViewModelStores


Factory methods for ViewModelStore class.

Summary

Public methods

static ViewModelStore of(Fragment fragment)

Returns the ViewModelStore of the given fragment.

static ViewModelStore of(FragmentActivity activity)

Returns the ViewModelStore of the given activity.

Inherited methods

Public methods

of

added in version 1.1.0
ViewModelStore of (Fragment fragment)

Returns the ViewModelStore of the given fragment.

Parameters
fragment Fragment: a fragment whose ViewModelStore is requested

Returns
ViewModelStore a ViewModelStore

of

added in version 1.1.0
ViewModelStore of (FragmentActivity activity)

Returns the ViewModelStore of the given activity.

Parameters
activity FragmentActivity: an activity whose ViewModelStore is requested

Returns
ViewModelStore a ViewModelStore