public static void putViewState(@NonNull Activity activity, @NonNull String viewId,
      @NonNull Object viewState) {
    if (activity == null) {
      throw new NullPointerException("Activity is null");
    }

    ActivityScopedCache scopedCache = getOrCreateActivityScopedCache(activity);
    scopedCache.putViewState(viewId, viewState);
  }
public static void putViewState ( @ NonNull Activity activity , @ NonNull String viewId , @ NonNull Object viewState ) { if ( activity == null ) { throw new NullPointerException ( "Activity is null" ) ; } ActivityScopedCache scopedCache = getOrCreateActivityScopedCache ( activity ) ; scopedCache . putViewState ( viewId , viewState ) ; }
Puts the presenter into the internal cache

@param activity The parent activity
@param viewId the view id (mosby internal)
@param viewState the presenter