private void OnNavigateToScreen(Screen screen) { var segueId = _screenToSegue[screen]; if (string.IsNullOrWhiteSpace(segueId)) { // Go back to the root; ignore for now } else { VisibleViewController.PerformSegue(segueId, VisibleViewController); } }
public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations() { return(VisibleViewController == null || VisibleViewController is UIAlertController ? UIInterfaceOrientationMask.All : VisibleViewController.GetSupportedInterfaceOrientations()); }
public override UIInterfaceOrientation PreferredInterfaceOrientationForPresentation() { return(VisibleViewController == null?base.PreferredInterfaceOrientationForPresentation() : VisibleViewController.PreferredInterfaceOrientationForPresentation()); }
public override bool ShouldAutorotate() { return(VisibleViewController == null ? true : VisibleViewController.ShouldAutorotate()); }
public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations() { return(VisibleViewController?.GetSupportedInterfaceOrientations() ?? base.GetSupportedInterfaceOrientations()); }
public override bool ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation toInterfaceOrientation) { return(VisibleViewController?.ShouldAutorotateToInterfaceOrientation(toInterfaceOrientation) ?? base.ShouldAutorotateToInterfaceOrientation(toInterfaceOrientation)); }
public override bool ShouldAutorotate() { return(VisibleViewController?.ShouldAutorotate() ?? base.ShouldAutorotate()); }