Skip to main content
SunilRana_Gateway
Inspiring
September 4, 2012
Question

is there any exit or close event in mobile application for iOS app?

  • September 4, 2012
  • 10 replies
  • 5815 views

Hi All,

     Is there any event like in mobile like "close" event, just like in WindowedApplication having "close" which

     Closes the application's NativeWindow.

     I want call function when application close.

     Please suggest solution.

Thanks,

Sunil Rana

This topic has been closed for replies.

10 replies

Nimisha1
Participating Frequently
September 4, 2012
SunilRana_Gateway
Inspiring
September 4, 2012

Thanks Nimisha,

I had already used Event.DEACTIVATE  but it will not help.

Thanks,

Sunil Rana

Adobe Employee
September 4, 2012

Add a listener for EXITING event. AIR dispatches EXITING event on iOS when application is about to be exited. Your application can execute for around 5 seconds after receiving this event.

NativeApplication.nativeApplication.addEventListener(Event.EXITING, onExit);

function onExit(e:Event):void

{
// code to be executed upon exit.
}


Please note that EXITING event is not dispatch if application is in suspended in background.


-Neha