code: public void autoRefresh() {
          if (!isPullRefreshEnabled) return;
  
          setRefreshing(true);
          new android.os.Handler().postDelayed(new Runnable() {
              @Override
              public void run() {
                  callOnPullRefresh();
              }
          }, 1000);
      }
docs: Automatic pull refresh