Skip to main content
SunilRana_Gateway
Inspiring
Sep 4, 2012 11:32 AM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

10 replies

Nimisha1
Participating Frequently
Sep 4, 2012 11:54 AM UTC
SunilRana_Gateway
Inspiring
Sep 4, 2012 12:08 PM UTC

Thanks Nimisha,

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

Thanks,

Sunil Rana

Translate
Adobe Employee
Sep 4, 2012 1:21 PM UTC

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

Translate