cordova plugin for disabling screen dimming
Java Objective-C JavaScript
Switch branches/tags
Nothing to show
Latest commit a765a73 Jul 30, 2012 @alunny alunny comment in example code
Failed to load latest commit information.
src android support Jul 11, 2012
www initial commit with iOS support Jul 11, 2012 comment in example code Jul 30, 2012
plugin.xml 1.0.0 release Jul 11, 2012


PhoneGap/Cordova plugin for enabling/disabling screen dim


<script src="cordova.js"></script>
<script src="screendim.js"></script>
    // turn off the default screen dimming
    document.getElementById('turnoff').addEventListener('touchstart', function (e) {

    // turn it back on
    document.getElementById('turnon').addEventListener('touchstart', function (e) {

    // toggle it
    document.getElementById('toggle').addEventListener('touchstart', function (e) {


Use pluginstall -


Mobile devices typically have an idle timer - a time limit when the screen will start to dim to conserve power.

By default this is a good thing - you don't want any old app keeping your screen on and killing your power. However, in certain cases you may want to disable this dimmer - for example, if you have a chess game where the user would be expected to think about her move, without touching the screen, for some extended period of time.

This plugin should be used for that purpose - disable the screen dimmer for some part of your app, and enable it again once you're done.

Supported Platforms

  • iOS
  • Android