Skip to main content

Interface: BackgroundTaskConstraints

Optional operating-system constraints for a persistent Android task.

Properties

network?

optional network?: BackgroundNetworkType

Required network. Defaults to connected.


requiresBatteryNotLow?

optional requiresBatteryNotLow?: boolean

Defer while Android reports a low battery.


requiresStorageNotLow?

optional requiresStorageNotLow?: boolean

Defer while Android reports low storage.


requiresCharging?

optional requiresCharging?: boolean

Require charging on battery-powered devices.


requiresDeviceIdleOnTv?

optional requiresDeviceIdleOnTv?: boolean

Require Android device-idle mode on television devices only.