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