Skip to content

Instantly share code, notes, and snippets.

@ferminhg
Created December 2, 2014 11:45
Show Gist options
  • Select an option

  • Save ferminhg/4f613a416fd990442131 to your computer and use it in GitHub Desktop.

Select an option

Save ferminhg/4f613a416fd990442131 to your computer and use it in GitHub Desktop.
Corona SDK - Runtime Events
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