Created
December 2, 2014 11:45
-
-
Save ferminhg/4f613a416fd990442131 to your computer and use it in GitHub Desktop.
Corona SDK - Runtime Events
This file contains hidden or 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
| local function onSystemEvent( event ) | |
| local eventType = event.type | |
| if ( eventType == "applicationSuspend" ) then | |
| -- acciones necesarias cuando el dispositivo es suspendido | |
| elseif ( eventType == "applicationResume" ) then | |
| -- acciones para cuando la app vuelve de un estado suspendido | |
| end | |
| end | |
| Runtime:addEventListener( "system", onSystemEvent ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment