code: public static CallbacksManager init(Bundle bundle, Object... callbackHandlers) {
      if (bundle == null) {
        return new CallbacksManager();
      }
  
      CallbacksManager callbacksManager = new CallbacksManager();
      ArrayList<TaskHandler> taskProxies = bundle.getParcelableArrayList(TASK_PROXY_LIST);
      if (taskProxies != null) {
        callbacksManager.proxyTasks.addAll(taskProxies);
      }
  
      if (callbackHandlers != null) {
        for (TaskHandler proxyTask : new ArrayList<TaskHandler>(callbacksManager.proxyTasks)) {
          proxyTask.clearCallbacks();
          proxyTask.appendCallbacks(callbackHandlers);
        }
      }
      return callbacksManager;
    }
docs: Call from within your activity or fragment onCreate method.
  
  @param bundle the onSaveInstance bundle
  @param callbackHandlers an array of callback handlers to mange
  @return an instance of {@link CallbacksManager}