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?
// 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.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more