requiresCharging property

bool requiresCharging
final

Task will only run if device is charging. Android: setRequiresCharging(true). iOS: requiresExternalPower = true.

Implementation

final bool requiresCharging;