forceLock

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i forceLock

Weekly Downloads

2

Version

0.0.1

License

Apache 2.0

Last publish

Collaborators

  • adam-hanna