code: public void setEnableScheduledScanJobs(boolean enabled) {
          if (isAnyConsumerBound()) {
              LogManager.e(TAG, "ScanJob may not be configured because a consumer is" +
                      " already bound.");
              throw new IllegalStateException("Method must be called before calling bind()");
          }
          if (enabled && android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
              LogManager.e(TAG, "ScanJob may not be configured because JobScheduler is not" +
                      " availble prior to Android 5.0");
              return;
          }
          if (!enabled && android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
              LogManager.w(TAG, "Disabling ScanJobs on Android 8+ may disable delivery of "+
                      "beacon callbacks in the background unless a foreground service is active.");
          }
          if(!enabled && android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
              ScanJobScheduler.getInstance().cancelSchedule(mContext);
          }
          mScheduledScanJobsEnabled = enabled;
      }
docs: Configures using a `ScanJob` run with the `JobScheduler` to perform scans rather than using a
  long-running `BeaconService` to do so.
  
  Calling with true on devices older than Android L (5.0) will not apply the change
  as the JobScheduler is not available.
  
  This value defaults to true on Android O+ and false on devices with older OS versions.
  Accepting the default value of false is recommended on Android N and earlier because
  otherwise beacon scans may be run only once every 15 minutes in the background, and no low
  power scans may be performed between scanning cycles.
  
  Setting this value to false will disable ScanJobs when the app is run on Android 8+, which
  can prohibit delivery of callbacks when the app is in the background unless the scanning
  process is running in a foreground service.
  
  This method may only be called if bind() has not yet been called, otherwise an
  `IllegalStateException` is thown.
  
  @param enabled