[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 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
|
* @param errorCallback function to be called when there was a problem with acquiring the wake-lock
|
||||||
*/
|
*/
|
||||||
PowerManagement.prototype.acquire = function(successCallback,failureCallback) {
|
PowerManagement.prototype.acquire = function(successCallback,failureCallback, runLockScreen) {
|
||||||
cordova.exec(successCallback, failureCallback, 'PowerManagement', 'acquire', []);
|
if( typeof runLockScreen === "undefined" ) runLockScreen = false;
|
||||||
|
|
||||||
|
cordova.exec(successCallback, failureCallback, 'PowerManagement', 'acquire', [runLockScreen]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user