I was trying to find a way in Haxe/OpenFL to determine when the application gets into sleep mode, or returns from sleep.
In ActionScript NativeApplication (NativeApplication - Adobe ActionScript® 3 (AS3 ) API Reference), it suppose to dispatch events like suspend
, userIdle
, userPresent
etc. However, I didn’t found any similar events in openfl.events.Event
. I not even sure if such events provides by openfl.desktop.NativeApplication
or not, I didn’t seen any such reference in its documentation.
I’m mostly a newbie in Haxe/OpenFL, can someone help me to find a way out?
Thanks!