Window.close

Function/Meaning

close the window

Type
Windowclassmethod of
Syntax
close()
Arguments
Return value
None (void)
Explanation

Closes the window displayed by the Window.showModal method.
You can check if the window can be closed by raising the Window.onCloseQuery event before closing the window.
On Android, the Window.onCloseQuery event does not fire and Activity.finish () is called to exit.

Reference
Window.showModal
Window.onCloseQuery