Пример #1
0
        public SwipeListener(View view, ISwipeCallback iSwipeCallBack)
        {
            this.iSwipeCallBack = iSwipeCallBack;
            var panGesture = new PanGestureRecognizer();

            panGesture.PanUpdated += PanGesture_PanUpdated;
            view.GestureRecognizers.Add(panGesture);
        }
        public SwipeListener(View view, ISwipeCallback callback)
        {
            this.callback = callback;
            var gesture = new PanGestureRecognizer();

            gesture.PanUpdated += OnPanUpdated;
            view.GestureRecognizers.Add(gesture);
        }