Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Is any event triggered whn a user hits the home key on an iphone/ipad?

I would like my app to retain state and hoping to trigger that based on the home key being clicked.

If I cant do that I guess I just need to retain state with each action.

— asked May 8th 2010 by Justin Vincent
  • button
  • home
  • ipad
  • iphone
  • retain
  • state

2 Answers

  • I think you can intercept the close event but I'm not sure how much time you have to perform any actions. As you suggest it might be easier to call everything through a filter like function that saves/retrieves state if needed.

    — answered May 8th 2010 by Brian Raymond
  • listen to the application's close event - there's an example in the KitchenSink.

    — answered May 8th 2010 by Damien Elmes
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.