I am searching for an event with that I get weather the screen is turned on or off. In Android there is this nice BroadcastReceiver. Is there anything like that in UWP-Apps?
Kind regards
I am searching for an event with that I get weather the screen is turned on or off. In Android there is this nice BroadcastReceiver. Is there anything like that in UWP-Apps?
Kind regards
No, its the system level behavior and there is no bridge like BroadcastReceiver to deliver such message into the app. There used to be one for Windows Phone Silverlight but not available on Windows Universal App.
If you simply wants to keep the screen on, try this: RequestActive | requestActive method