Window.onCloseQuery

Function/Meaning

[Windows *] Confirmation to close the window

Type
WindowclassEvent
Syntax
onCloseQuery(canclose)
Arguments
canclose

You will be passed if you can close the window.
In the course where the event handler of the upper class is called from the lower class, "Can the window be closed?" Determined by the lower class is passed.

Return value
None (void)
Explanation

This is an event to check if the window can be closed.
If you cannot close the window, pass false as an argument to the same method in the upper class.
For Android, you need to quit yourself with the back key on the title screen (handle onKeyXXX yourself).
When the system stops it, it can't be stopped and it may be stopped suddenly.
No questions asked when you are finished from the task list.
On Android, the only countermeasure against sudden termination is to auto-save when onDeactivate comes.