UWP Windows Phone detect type of USB connection

90 Views Asked by At

I'm writing an app for a Windows 10 Mobile Enterprise phone, using the UWP framework and C#.

When I plug the phone into a computer, the phone prompts for whether I want to allow a data connection, or just power.

I know there's an event to detect whether the phone is being charged or not, but I need an event that is fired when the user says Yes to allow a data connection.

0

There are 0 best solutions below