public override IUIViewControllerInteractiveTransitioning GetInteractionControllerForDismissal(IUIViewControllerAnimatedTransitioning animator)
		{
			return null;
		}
示例#2
0
        public IUIViewControllerInteractiveTransitioning GetInteractionControllerForDismissal(IUIViewControllerAnimatedTransitioning animator)
        {
            if (ForcesNonInteractiveDismissal)
            {
                return(null);
            }

            _animator.EndingViewForAnimation = _animator.NewAnimationViewFromView(EndingView);

            _interactionController.Animator = _animator;
            _interactionController.ShouldAnimateUsingAnimator        = EndingView != null;
            _interactionController.ViewToHideWhenBeginningTransition = (StartingView != null) ? EndingView : null;

            return(_interactionController);
        }
示例#3
0
 public override IUIViewControllerInteractiveTransitioning GetInteractionControllerForDismissal(IUIViewControllerAnimatedTransitioning animator)
 {
     return(null);
 }
示例#4
0
 public override IUIViewControllerInteractiveTransitioning GetInteractionControllerForPresentation(IUIViewControllerAnimatedTransitioning animator)
 {
     // if our interactive flag is true, return the transition manager object
     // otherwise return nil
     //TODO: Fix this. Cast not working...
     return(null);// interactive ? SideMenuTransition.Current : null;
 }
示例#5
0
 public override IUIViewControllerInteractiveTransitioning GetInteractionControllerForDismissal(IUIViewControllerAnimatedTransitioning animator)
 {
     //TODO: Fix this. Cast not working...
     return(null);// interactive ? SideMenuTransition.Current : null;
 }
示例#6
0
 public IUIViewControllerInteractiveTransitioning GetInteractionControllerForDismissal(IUIViewControllerAnimatedTransitioning animator) => interactor.HasStarted ? interactor : null;
			public override IUIViewControllerInteractiveTransitioning GetInteractionControllerForAnimationController (UINavigationController navigationController, IUIViewControllerAnimatedTransitioning animationController)
			{
				if (animationController == transitionController)
					return transitionController;
				return null;
			}
        public IUIViewControllerInteractiveTransitioning GetInteractionControllerForDismissal(IUIViewControllerAnimatedTransitioning animator)
        {
            if (GestureRecognizer != null)
            {
                return(new SwipeTransitionInteractionController(GestureRecognizer, TargetEdge));
            }

            return(null);
        }
示例#9
0
        public IUIViewControllerInteractiveTransitioning GetInteractionControllerForAnimationController(UITabBarController tabBarController, IUIViewControllerAnimatedTransitioning animationController)
        {
            UIViewController[] viewControllers = tabBarController.ViewControllers;

            if (PanGestureRecognizer.State == UIGestureRecognizerState.Began || PanGestureRecognizer.State == UIGestureRecognizerState.Changed)
            {
                return(new SlideTransitionInteractionController(PanGestureRecognizer));
            }

            return(null);
        }
 public IUIViewControllerInteractiveTransitioning GetInteractionControllerForPresentation(IUIViewControllerAnimatedTransitioning animator)
 {
     return(this.DisableInteractiveTransitioning ? null: this.PresentInteractor);
 }
示例#11
0
 public override IUIViewControllerInteractiveTransitioning GetInteractionControllerForPresentation(IUIViewControllerAnimatedTransitioning animator)
 {
     throw new System.NotImplementedException();
 }
 public IUIViewControllerInteractiveTransitioning GetInteractionControllerForDismissal(IUIViewControllerAnimatedTransitioning animator)
 {
     return(this.DisableInteractiveTransitioning? null: this.DismissInteractor);
 }
示例#13
0
 public ViewControllerTransitioningDeligate(IUIViewControllerAnimatedTransitioning show, IUIViewControllerAnimatedTransitioning hide)
 {
     this._showTransition = show;
     _hideTransition      = hide;
 }
 public override IUIViewControllerInteractiveTransitioning GetInteractionControllerForAnimationController(UINavigationController navigationController, IUIViewControllerAnimatedTransitioning animationController)
 {
     transition=new SlideLeftRight (reversed);
     return transition;
 }
示例#15
0
 public override IUIViewControllerInteractiveTransitioning GetInteractionControllerForAnimationController(UINavigationController navigationController, IUIViewControllerAnimatedTransitioning animationController)
 {
     return(InteractiveTransition);
 }
 public IUIViewControllerInteractiveTransitioning GetInteractionControllerForDismissal(IUIViewControllerAnimatedTransitioning animator)
 => swipeInteractionController.InteractionInProgress ? swipeInteractionController : null;
示例#17
0
 public override IUIViewControllerInteractiveTransitioning GetInteractionControllerForAnimationController (UINavigationController navigationController, IUIViewControllerAnimatedTransitioning animationController)
 {
     return InteractiveTransition;
 }
 public override IUIViewControllerInteractiveTransitioning GetInteractionControllerForPresentation(IUIViewControllerAnimatedTransitioning animator)
 {
     return(_interactor.HasStarted ? _interactor : null);
 }