How can I check if the screen is unlocked (E.i. Turned on and not on lockscreen)?
PS. I'm not looking for the unlock event, which I know can be retrieved with an AdminDeviceReceiver, but I'm looking for an executable code that will return a boolean telling me whether or not the screen is unlocked.