tags:

views:

11

answers:

1

I'm attaching a resume event to the app and I want to detect what window is currently focused

Ti.App.addEventListener('resume', function(e) {
  // what window is focused? visible?
});
A: 

just set a flag with on the every window focus event like

Ti.App.Properties.setString('currentWindow',Ti.UI.currentWindow.title);

so you only need to request this flag..

mkind
Not exactly what I'm looking for. I wish to access the actual current window object. It's possible that I may have many windows opened (maybe on top of each other). I want to attach to Ti.App's `resume` event in the root window and when that event is fired, I want to check what window is currently visible.
Shiki