/// <summary> /// If possible, discards the current page and displays the previous page /// on the navigation stack. /// </summary> public static void GoBack() { if (CurrentActivity != null) { CurrentActivity.OnBackPressed(); } }
public static void GoBack() { CurrentActivity?.OnBackPressed(); }