Difference between revisions of "MobileScreen.Close"

From Xojo Documentation

(Created page with "N/A")
 
Line 1: Line 1:
N/A
+
{{MethodBox
 +
| name = Close
 +
| ownertype = class
 +
| scope = public
 +
| parameters =
 +
| owner = [[MobileScreen]]
 +
| project=Mobile
 +
}}
 +
{{Description | text = For Screens that were displayed using PushTo, this closes the Screen causing the previous Screen to display.}}
 +
 
 +
== Notes ==
 +
Since calling Close displays the previous Screen, you can call it to simulate the user pressing a "Back" button on the Screen.
 +
 
 +
You cannot close the main Screen (the one that is specified as the Content for the iOS Layout), however you can swap in another Screen by using the [[MobileApplication.CurrentScreen]] property.

Revision as of 22:16, 22 October 2020

Method

MobileScreen.Close()

Supported on Mobile.

For Screens that were displayed using PushTo, this closes the Screen causing the previous Screen to display.

Notes

Since calling Close displays the previous Screen, you can call it to simulate the user pressing a "Back" button on the Screen.

You cannot close the main Screen (the one that is specified as the Content for the iOS Layout), however you can swap in another Screen by using the MobileApplication.CurrentScreen property.