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); } }
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(); }
public static void RemoveGesture(AndroidViewHandler handler, Gesture gesture) { var listner = handler.GetGestureListener(); listner.RemoveGesture(gesture); }