O'Reilly logo

Breaking Out of the Web Browser with Adobe AIR by Nathan Weber, Tom Kaczanko, Peter Dilillo, Mike Nimer, Michael Labriola, Steve Zimmers, Andriy Kupriyenko, Jeff Tapper, Louie Penaflor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required