windowState

Type Event
Revision Release 2024.3703
Keywords Desktop Window
See also Creating Win32 Desktop Apps
Creating macOS Desktop Apps

Overview

Invoked when window is being sent to background or activated again.

Properties

Example

function windowStateListener(event)
    print("Window was sent to: ", event.phase)
end
Runtime:addEventListener( "windowState", windowStateListener )