From 827ea04e1c65a37d145d6134872798076af01436 Mon Sep 17 00:00:00 2001 From: Max Bassett Date: Wed, 10 Aug 2016 15:00:02 -0400 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2e40f5e..048f59a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ PowerManagement =============== Plugin for Cordova (3.0+) -Added 'isDeviceIdleMode' function for use with Android 6.0.0+ +Added 'isIgnoringBatteryOptimizations' and 'addAppToBatteryWhitelist' functions for use with Android 6.0.0+ ============================================================= The PowerManagement plugin offers access to the devices power-management functionality. @@ -108,7 +108,7 @@ To check to see if the app that uses this plugin is on the device's battery opti }); -This function can be use in conjuction with the `window.powerManagement.addAppToBatteryWhitelist` above. Example: +This function can be use in conjunction with the `window.powerManagement.addAppToBatteryWhitelist` above. Example: window.powerManagement.isIgnoringBatteryOptimizations(function(result) { // If the app isn't on the battery whitelist, open the dialog to add it