How to identify when an app is in background?

Hello,

Is there a way to identify when an app is in background?

Hello,

Background not possible in Thunkable X.