A way can be to check Registry at
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\RadioManagement\SystemRadioState
(for example with RegNotifyChangeKeyValue)
WinUI3 : How to detect when user toggles aeroplane mode
Hi,
I'm working of WinUI3 desktop application. Is there any way where we can detect when user toggles aeroplane mode. Is there any event which gets triggered when aeroplane mode is toggled I tried searching online but was not able to find any solutions.
It would of great help if you could help me achieve this.
Thank you.
Windows development | Windows App SDK
Developer technologies | C++
2 answers
Sort by: Most helpful
-
Castorix31 91,281 Reputation points2022-12-28T13:47:21.71+00:00 -
Junjie Zhu - MSFT 21,731 Reputation points2023-01-31T06:48:23.1933333+00:00 Hi there,
Maybe you can try this, MobileBroadbandRadioStateChangeTrigger.
Represents a trigger that indicates when mobile broadband radio state has changed. For example, this trigger activates when a mobile device transitions to or from airplane mode. This functionality is available only to mobile operator apps and UWP app given privileged access by mobile network operators.
This is a winRT API, because of my equipment, I can't help you test.