event.name

Type String
Event hide
Revision Release 2022.3683
Keywords composer, scene, hide, event

Overview

For the hide event, event.name is the string value "hide". It can be accessed from the event listener for hide events that are dispatched to [scene][api.type.scene] objects.

Example

local composer = require( "composer" )
local scene = composer.newScene()

function scene:hide( event )
    print( event.name )
end
scene:addEventListener( "hide" )