Handling AIR Application Exit Events

I have an AIR application with the following EXIT handler:

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

applicationExitHandlerPerforms an asynchronous logout request through the HttpService. Since this is asynchronous, it looks like the exit () method of the application is returned before the exit request is actually made.

How can I make sure the request is complete before exit () exits?

+3
source share
1 answer

. . . / . , . (, , ). docs:

 , .

, ; , Cmd-Q Mac OS X autoExit NativeApplication , . .

: NativeApplication exit() . , exit() Event.EXITING type .

+6

Source: https://habr.com/ru/post/1703872/


All Articles