lifecycle/extensions/src/main/java/androidx/lifecycle/ViewModelStores.java
@Deprecated
    @NonNull
    @MainThread
    public static ViewModelStore of(@NonNull FragmentActivity activity) {
        return activity.getViewModelStore();
    }
/**
     * Returns the {@link ViewModelStore} of the given activity.
     *
     * @param activity an activity whose {@code ViewModelStore} is requested
     * @return a {@code ViewModelStore}
     * @deprecated Use {@link FragmentActivity#getViewModelStore()}
     */
Returns the  ViewModelStore of the given activity.
@param activity an activity whose  ViewModelStore is requested
@return a  ViewModelStore
@deprecated Use  FragmentActivity#getViewModelStore()
Returns the ViewModelStore of the given activity . @param activity an activity whose ViewModelStore is requested @return a ViewModelStore @deprecated Use FragmentActivity#getViewModelStore ()
@Deprecated
    @NonNull
    @MainThread
    public static ViewModelStore of(@NonNull FragmentActivity activity) {
        return activity.getViewModelStore();
    }
@ Deprecated @ NonNull @ MainThread public static ViewModelStore of ( @ NonNull FragmentActivity activity ) { return activity . getViewModelStore ( ) ; }
Returns the {@link ViewModelStore} of the given activity.
Returns the { @link ViewModelStore } of the given activity .