android/sdk/src/main/java/io/o2mc/sdk/util/Util.java
public static boolean isValidDispatchInterval(int seconds) {
    // Value must be positive
    if (seconds <= 0) {
      return false;
    }

    // Waiting an hour before dispatching is outrageous. Don't allow it.
    int oneHour = 60 * 60;
    if (seconds > oneHour) {
      return false;
    }

    // Waiting longer than 2 minutes to dispatch batches seems very long. The user will probably
    // have left the app by then. Allow it, but warn the developer.
    int twoMinutes = 2 * 60;
    if (seconds > twoMinutes) {
      LogW(TAG,
          "isValidDispatchInterval: Using an interval between 2 minutes and 1 hour between dispatching batches. This seems long. Are you sure you want to do this?");
    }

    return true;
  }
/**
   * Checks whether or not the provided interval is valid and reasonable.
   * This method will warn the user upon unreasonable usage, e.g. by mistaking seconds for milliseconds.
   *
   * @param seconds the amount of seconds to wait before each batch is dispatch
   * @return true if the provided interval is valid and reasonable
   */
Checks whether or not the provided interval is valid and reasonable.
This method will warn the user upon unreasonable usage, e.g. by mistaking seconds for milliseconds.

@param seconds the amount of seconds to wait before each batch is dispatch
@return true if the provided interval is valid and reasonable
Checks whether or not the provided interval is valid and reasonable . This method will warn the user upon unreasonable usage e . g . by mistaking seconds for milliseconds . @param seconds the amount of seconds to wait before each batch is dispatch @return true if the provided interval is valid and reasonable
public static boolean isValidDispatchInterval(int seconds) {
    if (seconds <= 0) {
      return false;
    }
    int oneHour = 60 * 60;
    if (seconds > oneHour) {
      return false;
    }
    int twoMinutes = 2 * 60;
    if (seconds > twoMinutes) {
      LogW(TAG,
          "isValidDispatchInterval: Using an interval between 2 minutes and 1 hour between dispatching batches. This seems long. Are you sure you want to do this?");
    }
    return true;
  }
public static boolean isValidDispatchInterval ( int seconds ) { if ( seconds <= 0 ) { return false ; } int oneHour = 60 * 60 ; if ( seconds > oneHour ) { return false ; } int twoMinutes = 2 * 60 ; if ( seconds > twoMinutes ) { LogW ( TAG , "isValidDispatchInterval: Using an interval between 2 minutes and 1 hour between dispatching batches. This seems long. Are you sure you want to do this?" ) ; } return true ; }
Checks whether or not the provided interval is valid and reasonable.
Checks whether or not the provided interval is valid and reasonable .
// Value must be positive // Waiting an hour before dispatching is outrageous. Don't allow it. // Waiting longer than 2 minutes to dispatch batches seems very long. The user will probably // have left the app by then. Allow it, but warn the developer.