shouldSaveEnergy static method

Future<bool> shouldSaveEnergy()

True when you should skip heavy work (low battery, saver on, or device hot). if (!await UApp.shouldSaveEnergy()) sync()

Implementation

static Future<bool> shouldSaveEnergy() async => (await UDevice.status()).shouldSaveEnergy;