Skip to content

simplec-dev/powermanagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PowerManagement

Plugin for PhoneGap Build

The original plugin was not compatible with PhoneGap Build. We created a plugin.xml for ios. Android will follow shortly, but we are not deploying there right now and cannot test it.

The rest of this file is edited the original readme

The PowerManagement plugin offers access to the devices power-management functionality. It should be used for applications which keep running for a long time without any user interaction.

For details on power functionality see:

Using the plugin

// prevent device from sleeping
window.plugins.powerManagement.acquire();

// allow device to sleep
window.plugins.powerManagement.release();