BackgroundFetchConfig constructor

BackgroundFetchConfig({
  1. required int minimumFetchInterval,
  2. bool? stopOnTerminate,
  3. bool? startOnBoot,
  4. bool? enableHeadless,
  5. bool? forceAlarmManager,
  6. NetworkType? requiredNetworkType,
  7. bool? requiresBatteryNotLow,
  8. bool? requiresStorageNotLow,
  9. bool? requiresCharging,
  10. bool? requiresDeviceIdle,
})

Creates an instance of BackgroundFetchConfig to provide to configure.

Implementation

BackgroundFetchConfig(
    {required this.minimumFetchInterval,
    bool? stopOnTerminate,
    bool? startOnBoot,
    bool? enableHeadless,
    bool? forceAlarmManager,
    NetworkType? requiredNetworkType,
    bool? requiresBatteryNotLow,
    bool? requiresStorageNotLow,
    bool? requiresCharging,
    bool? requiresDeviceIdle})
    : super(
          stopOnTerminate: stopOnTerminate,
          startOnBoot: startOnBoot,
          enableHeadless: enableHeadless,
          forceAlarmManager: forceAlarmManager,
          requiredNetworkType: requiredNetworkType,
          requiresBatteryNotLow: requiresBatteryNotLow,
          requiresStorageNotLow: requiresStorageNotLow,
          requiresCharging: requiresCharging,
          requiresDeviceIdle: requiresDeviceIdle);