How to check if screen is on even if app paused?

I want to know if its possible to check if screen is on even if app is pause?

1 Like

What you want. For what purpose you want such feature?

When your app is in pause, I think you can’t execute any code, so that would be not possible (again, I think. I didn’t try).
But in case you would like to try something, do this:

When your app starts initialize the variable ScreenVisible to TRUE.
Use these blocks to change the value of that variable to FALSE or TRUE accordingly:

image

3 Likes

Im making an app like Google Family Link and i want it so be able to track how much time the kid uses.

1 Like