Skip to content
A cordova plugin to programatically lock an android phone
Java JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
res/android/xml
src/android
www
LICENSE
README.md
package.json
plugin.xml

README.md

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

  1. Add callbacks
  2. Move text to strings.xml
You can’t perform that action at this time.