forceLock
A cordova plugin to programatically lock an android phone
This is a fork of XavierTalpe/android-lock-my-screen. This package wraps the code from that package into a cordova plugin.
Installation
$ cordova plugin add cordova-plugin-force-lock
Usage
window.forceLock.lock(
function () {
// success
console.log("initiated forceLock")
},
function (e) {
// err
console.log("faled to initiate forceLock\n\n", e)
}
)
TODO
- Add callbacks
- Move text to strings.xml