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);
            }
        }
Exemplo n.º 2
0
 public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations()
 {
     return(VisibleViewController == null || VisibleViewController is UIAlertController ?
            UIInterfaceOrientationMask.All : VisibleViewController.GetSupportedInterfaceOrientations());
 }
Exemplo n.º 3
0
 public override UIInterfaceOrientation PreferredInterfaceOrientationForPresentation()
 {
     return(VisibleViewController == null?base.PreferredInterfaceOrientationForPresentation() :
                VisibleViewController.PreferredInterfaceOrientationForPresentation());
 }
Exemplo n.º 4
0
 public override bool ShouldAutorotate()
 {
     return(VisibleViewController == null ? true : VisibleViewController.ShouldAutorotate());
 }
Exemplo n.º 5
0
 public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations()
 {
     return(VisibleViewController?.GetSupportedInterfaceOrientations() ?? base.GetSupportedInterfaceOrientations());
 }
Exemplo n.º 6
0
 public override bool ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation toInterfaceOrientation)
 {
     return(VisibleViewController?.ShouldAutorotateToInterfaceOrientation(toInterfaceOrientation) ?? base.ShouldAutorotateToInterfaceOrientation(toInterfaceOrientation));
 }
Exemplo n.º 7
0
 public override bool ShouldAutorotate()
 {
     return(VisibleViewController?.ShouldAutorotate() ?? base.ShouldAutorotate());
 }