0

*Do Xamarin provides touch position/gesture API ? *Do MR.Gestures is the best solution to handle touch ? *Is there other touch shared code APIs ? *Or simply, how can I get the coordonates of all touched points with Xamarin ?

Thanks

  • 1
    Please provide a better explanation of your use case. – Jason Jun 09 '22 at 20:04
  • [Xamarin TouchTrackingEffect Sample](https://github.com/xamarin/xamarin-forms-samples/tree/main/Effects/TouchTrackingEffect), described at [Invoking Events from Effects](https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/effects/touch-tracking) is one open-source approach. its also available as [a (not official) Nuget](https://github.com/zauberzeug/XFormsTouch). – ToolmakerSteve Jun 09 '22 at 22:54
  • emmm, are you copying the questions from [here](https://stackoverflow.com/questions/43186122/xamarin-how-to-get-cursor-touch-coordinates-position-x-and-y) – Shaw Jun 09 '22 at 23:57

1 Answers1

0

Xamarin forms built in gesture recognizers provide basic touch handling currently.So externel Api is a choice.

Although you can use dependency service to subscribe/unsubscribe to the tap events. Here is a question you can refer to Xamarin.Forms - Global tapped event on application level.

Adrain
  • 1,946
  • 1
  • 3
  • 7