示例#1
0
        public static void AddGestures(AndroidViewHandler handler, View view)
        {
            var gestures = view.Gestures;

            if (!(gestures?.Any() ?? false))
            {
                return;
            }
            var listner = handler.GetGestureListener();

            foreach (var gesture in gestures)
            {
                listner.AddGesture(gesture);
            }
        }
示例#2
0
        public static void RemoveGestures(AndroidViewHandler handler, View view)
        {
            var gestures = view.Gestures;

            if (!gestures.Any())
            {
                return;
            }
            var listner = handler.GetGestureListener();

            foreach (var gesture in view.Gestures)
            {
                listner.RemoveGesture(gesture);
            }
            listner.Dispose();
        }
示例#3
0
        public static void RemoveGesture(AndroidViewHandler handler, Gesture gesture)
        {
            var listner = handler.GetGestureListener();

            listner.RemoveGesture(gesture);
        }