requiresCharging property

bool requiresCharging
final

true if the work should only execute while the device is charging

Implementation

final bool requiresCharging