question

MartinFernandez-9361 avatar image
0 Votes"
MartinFernandez-9361 asked LeonLu-MSFT answered

Hands free button detection

Hi everyone. How can you detect when a handsfree button is pressed and trigger an on-screen button event?

dotnet-xamarinforms
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLu-MSFT avatar image
0 Votes"
LeonLu-MSFT answered

Hello,​

Welcome to our Microsoft Q&A platform!

Do you want to detect the hand free button click when you make a call?

If so, I am afraid this answer is No, due to the protect the users' privacy, Android and iOS do not provide this api to detect it.

Best Regards,

Leon Lu



If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.