Chapter 8. Working with the Presence API

Any computer that relies on a network connection runs the risk of losing its connection due to a technical problem or a lack of connectivity. AIR enables applications to handle such cases without interrupting the workflow by means of the Presence API. This chapter will discuss using the ServiceMonitor class to determine if a network connection is available, and the URLMonitor class to detect if HTTP communication is allowed to a specified address. The chapter will also illustrate how you can use the SocketMonitor class to determine if a particular socket is available on a firewalled or router-protected connection. In addition to understanding the classes, this chapter will look at how the dpTimeTracker ...

Get Breaking Out of the Web Browser with Adobe AIR now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.