widget only
This event is only available when the
ui module is loaded before capture and Camera is used as a widget.Camera:onHide()event
This event is fired when the Camera widget is hidden, either via Camera:hide() or by setting the Camera.visible property to false.
Return value
The event returns no value.Example
--! luart-extensions
import ui, capture
local win = ui.Window("Camera:onHide() sample", "fixed", 640, 520)
local cam = ui.Camera(win, 10, 10, 620, 460)
function cam:onHide()
print("Camera widget is now hidden")
end
await win:showasync()