Titanium: register to system events

359 views Asked by At

I'm looking for a way to create custom events on Titanium. In order to do that I would need to register to a global var array every time the window opens (not a problem) however, I would have to un-register every time the window is cleaned from the memory, the event that fires then is the E/TiBaseActivity(10448): (main) Layout cleanup. I would like to register to that event with a un-register function for the specific window.

Is there a way to do that?


Update:

Well, I got an answer on the Titanium Q&A.

Apparently there is a close event that will fire everytime the window is closed.

1

There are 1 answers

0
thepoosh On BEST ANSWER

well, I got an answer on the Titanium Q&A.

apparently there is a close event that will fire everytime the window is closed.