When my Universal Windows Platform(UWP) app is open and user locked the screen i want to know that screen is locked i.e., status of the screen lock.
When the screen is locked the 'OnSuspending' method of App.xaml.cs will be fired. Now whatever the APIs are vailable to detect this screen lock, i want to use them and detect.
Can this lockscreen namespace be used to detect screenlock?
can we use 'Microsoft.Win32.SystemEvents.SessionSwitch' to detect lock screen ststus from UWP app?(as provided in 2nd link)
Is there any other possible way?