// -------------------------------------------------------------------------- // // IOnGestureListener METHODS // // -------------------------------------------------------------------------- // // When a single tap up has been detected, tell the Xamarin.Forms control // to dispatch its tap event. // public bool OnSingleTapUp(MotionEvent e) { formsElement.OnTapEvent((int)e.GetX(), (int)e.GetY()); return(true); }
// // Respond to taps. // public void TapHandler(UITapGestureRecognizer tgr) { CGPoint touchPoint = tgr.LocationInView(nativeElement); formsElement.OnTapEvent((int)touchPoint.X, (int)touchPoint.Y); }