setBackgroundProcessingInterval static method

bool setBackgroundProcessingInterval(
  1. int intervalSeconds
)

Configures the background processing interval

intervalSeconds must be between minimumRetryInterval and maximumRetryInterval

Implementation

static bool setBackgroundProcessingInterval(int intervalSeconds) {
  if (intervalSeconds < minimumRetryInterval ||
      intervalSeconds > maximumRetryInterval) {
    return false;
  }

  _currentBackgroundInterval = intervalSeconds;
  return true;
}