event.type

Type String
Event system
Revision Current Public Release (2016.2992)
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 )