Skip to content

rootzoll/cordova-android-stayawake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-android-stayawake

=========

A small library providing utility methods to disable screen timeout for that particular application thus enable it to stay awake.

Constraint

  • Support only android.

Installation

cordova plugin add https://github.com/rootzoll/cordova-android-stayawake

Usage

In the index.html include :

 <script src="StayAwake.js"></script>

provides you the following two scripts:

    StayAwake.disableScreenTimeout();
    StayAwake.enableScreenTimeout();

Just use when device is ready.

About

small cordova plugin for android to keep screen awake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 80.3%
  • JavaScript 19.7%