Window:onMinimize() event


This event is fired when the Window has been minimized, by the user or just after a Window:minimize() call.

Return value

The event returns no value.

Example

local ui = require "ui" -- create a simple window local win = ui.Window("Minimize, maximize or restore me !") function win:onMinimize() ui.info("Window has been minimized !") end function win:onMaximize() ui.info("Window has been maximized !") end function win:onRestore() ui.info("Window has been restored !") end -- update user interface ui.run(win):wait()