code: @SuppressWarnings({"unused", "WeakerAccess"})
      public void setOffline(boolean value){
          offline = value;
          if (offline) {
              getConfigLogger().debug(getAccountId(), "CleverTap Instance has been set to offline, won't send events queue");
          } else {
              getConfigLogger().debug(getAccountId(), "CleverTap Instance has been set to online, sending events queue");
              flush();
          }
      }
docs: If you want to stop recorded events from being sent to the server, use this method to set the SDK instance to offline.
  Once offline, events will be recorded and queued locally but will not be sent to the server until offline is disabled.
  Calling this method again with offline set to false will allow events to be sent to server and the SDK instance will immediately attempt to send events that have been queued while offline.
  
  @param value boolean, true sets the sdk offline, false sets the sdk back online