is any way to avoid sceen into dark

Hi

 Is anyone know how to keep screen and system weak up.

Because some puzzle game need more time to think  without touch .

 But a lot of device system go into lock screen and turn the screen dark.

It is really bother player. Is any way to avoid this case.

I know native api can do this. unity also have this api.

Is corona have this function or other work around method ?

Hi CC,

I believe you may be after this:

[lua]system.setIdleTimer( false )[/lua]

http://docs.coronalabs.com/api/library/system/setIdleTimer.html

Hi CC,

I believe you may be after this:

[lua]system.setIdleTimer( false )[/lua]

http://docs.coronalabs.com/api/library/system/setIdleTimer.html