validateBackgroundInterval static method

bool validateBackgroundInterval(
  1. int intervalSeconds
)

Validates if a background processing interval is valid

Implementation

static bool validateBackgroundInterval(int intervalSeconds) {
  return intervalSeconds >= minimumRetryInterval &&
      intervalSeconds <= maximumRetryInterval;
}