system state | developer.brewmp.com system state | developer.brewmp.com

Developer

system state

How do I determine from TrigML/Lua level whether or not the phone has timed out and is "hibernating"? I believe I can determine it from /actor/systemState/opmode, but I don't know if its the offline (3) or LPM (5) value.

Also, how do I determine if the phone is in lockscreen mode (displaying the lockscreen)?

Lastly, how do I determine if the phone is currently displaying the home canvas (idle screen)?

Thanks!