I’d like to intercept system events like sreen orientation change, screen turn on/off etc… from inside the brwser running my application.
How can I do this? Is it possible to listem to this kind of events?
How would you do this in HTML5? I’m not sure there are screen on/off events, and orientation change (I think) is determined only by a page resize
There are no screen on/ff events but there is an event for a changed screen oriëntation: https://developer.mozilla.org/en-US/docs/Web/Events/orientationchange.
What is Event.ACTIVATE/DEACTIVATE for? I am a bit confused about the situations when it is triggered…
And how do I intercept it in Haxe/Openfl?
At the moment, you would use
js.Browser.window and add an event listener, I think
Oooooh yes, ok boss!