event.type

Type String
Event system
Revision Release 2022.3683
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 )