Lime extension for enabling / disabling automatic screen lock on Android.
- Enable automatic screen locking.
- Disable automatic screen locking.
To install this library, you can simply get the library from haxelib like this:
haxelib install extension-wake-lock
To use this extension, simply add the next line in the project.xml
<haxelib name="extension-wake-lock" />
Then, on your hace code:
function someFunction(){
// to disable screen Lock
extension.wakeLock.WakeLock.allowScreenTimeout = false;
// to enable screen Lock
extension.wakeLock.WakeLock.allowScreenTimeout = true;
}
The MIT License (MIT) - LICENSE.md
Copyright © 2015 SempaiGames (http://www.sempaigames.com)
Author: Joacko Bengochea & Federico Bricker