Created
December 16, 2013 12:39
-
-
Save csemrm/7986361 to your computer and use it in GitHub Desktop.
How to prevent Auto Lock in you IOS device when apps are running? You can easily manage auto lock status in titanium.
Here is my simple code for preventing auto lock option in iOS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Titanium.UI.createWindow({ | |
backgroundColor : '#ddd', | |
}); | |
Ti.App.idleTimerDisabled = true; | |
alert(Ti.App.getIdleTimerDisabled()); | |
win.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment