event.type

Type String
Event system
Revision 2017.3060
Keywords system, type

Overview

Identifies the type of system event that occurred. It will be one of the following values:

Gotchas

When a user "force quits" an application, the "applicationExit" event does not fire on any platform.

Example

local function onSystemEvent( event )
    print( "System event name and type: " .. event.name, event.type )
end
 
Runtime:addEventListener( "system", onSystemEvent )