[WP] added option for running under the lock screen as well
This commit is contained in:
parent
ab33a1073c
commit
6b1b27eca5
@ -26,8 +26,10 @@ var PowerManagement = function() {};
|
||||
* @param successCallback function to be called when the wake-lock was acquired successfully
|
||||
* @param errorCallback function to be called when there was a problem with acquiring the wake-lock
|
||||
*/
|
||||
PowerManagement.prototype.acquire = function(successCallback,failureCallback) {
|
||||
cordova.exec(successCallback, failureCallback, 'PowerManagement', 'acquire', []);
|
||||
PowerManagement.prototype.acquire = function(successCallback,failureCallback, runLockScreen) {
|
||||
if( typeof runLockScreen === "undefined" ) runLockScreen = false;
|
||||
|
||||
cordova.exec(successCallback, failureCallback, 'PowerManagement', 'acquire', [runLockScreen]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user