From 7305820aa9657e71153ada579ad67cf8bcbba6be Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 21 Mar 2024 10:52:23 +1100 Subject: [PATCH] Add doc for canPop --- luals-stubs/screen.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/luals-stubs/screen.lua b/luals-stubs/screen.lua index 55253f1c..fc1b37f8 100644 --- a/luals-stubs/screen.lua +++ b/luals-stubs/screen.lua @@ -22,4 +22,9 @@ function screen:onShown() end --- been popped off of the stack. function screen:onHidden() end +--- Called when this screen is about to be popped off of the stack. If this +--- returns false, it will not be popped. May be a function, or any boolean +--- convertable value. +function screen:canPop() end + return screen