Reputation: 5828
I have a pure AS3 app that I'm deploying to both Android and iOS. In some cases I need the screen to not turn off for 60+ seconds. Is there a way to do this with AIR for mobile?
Upvotes: 7
Views: 8683
Reputation: 18820
i used
// no dimming
NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;
to disable the screen timeout for my app. don't know if you can switch this on and off while the app is running?!
only tested this on android ... but should work on iOS too.
Upvotes: 25