event.type

Type String
Event system
Revision 2017.3178
Keywords system, type

Overview

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

Gotchas

Example

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