Is there any way of controlling an incoming phonecall on UWP? I'm looking for something like:
1. Get IncomingPhonecallEventHandler to attach
2. When triggered, be capable of:
phonecall.Accept();
phonecall.Decline();
phonecall.DeclineWithSMS();
All of this is a part of my android smartwatch project, so I need to be able to call and recieve calls as well.
EDIT 1
I know the PhoneCallManager class, but registering for CallStateChanged event returns object, which I don't know how to use.
I believe you are looking for the PhoneCallManager class and the PhoneCallManager.CallStateChanged event.
You can also checkout this example (in C#) to see how to interact with the apis
If you want to be able to block and filter calls, you can checkout this example, it has that capability.
If you want to send SMS, this example has the code needed
However, I don't believe there is an API to answer phone calls at this time