Quits the app with showing an Alert dialog box before exiting.
The function will pause the program and exit before any further commands can be executed.
Example - Quit
function OnStart()
{
app.ShowPopup( "Exciting" );
app.Quit( "App will now exit anyway.", "No error detected." );
app.ShowPopup( "Exited" );
}
from native import app
def OnStart():
app.ShowPopup("Exciting")
app.Quit("App will now exit anyway.", "No error detected.")
app.ShowPopup("Exited")