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.
checking-for-workstation-lock-unlock-change-with-c-sharp
windows.applicationmodel.lockscreen
Can this lockscreen namespace be used to detect screenlock?
how-to-get-windows-unlock-event-in-c-sharp-windows-application
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?