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.

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alessandro Caliaro 4,206 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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.