Xamarin.Forms: How to make a button click vibrate, without installing further packages?

cdytoby 96 Reputation points
2021-03-07T14:06:09.513+00:00

I have a list view, and each cell in list view contains a copy button. I want to vibrate the phone when button is clicked. How do I do that?

Also, I find it very strange that when an item is selected in the list view, the phone vibrates. I'd like to disable it in this case.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,323 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alessandro Caliaro 4,181 Reputation points
    2021-03-07T14:56:12.693+00:00

    Xamarin Essentials should have a Method

    https://learn.microsoft.com/it-it/xamarin/essentials/vibrate

    Otherwise use platform specific code

    0 comments No comments