How to detect when screen sleep?

I wondering if it is possible to detect when screen go to sleep mode (screen off).

I know there is events Pause and Stop but those occur when user leave my app, it’s not what i’m looking for, but the screen it self.


Well, I know about keeping the screen on.
I don’t think there is an extension that detects that.

I know that extension too.

Finaly i made it! Ok not realy an event listener but a state check.

This is my first extension! :upside_down_face:

Return true or false.

To test Off state you can use Clock and save the result in text field while the device is in sleep mode.

Download AIX


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.