Air Native Extension for checking network connectivity.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Air Native Extension for social messaging on iOS

Please note that we are no longer able to support this project and are not contributing to it.

This is an Air native extension for checking network connectivity on iOS. It works with a single common interface on iOS and on all platforms supported by Air’s NetworkInfo class.

Binary files

The bin folder contains the compiled extension and the default swc, which can be used for local testing if required by your development environment (Flash Builder shouldn’t need it, but other IDEs may).

Using the extension

Test if the extension is supported

NetworkStatus.isSupported : Boolean;

Is a boolean. Will return false on platforms where the extension is not supported.

Test if the device has an active network connection

NetworkStatus.hasConnection : Boolean;

Get a vector of all network interfaces

NetworkStatus.findInterfaces() : Vector.<NetworkInterface>

Receive notifications when the network status changes

NetworkStatus.startCheckingForConnection( interval : int ) : void

where interval is the number of seconds between each check.

When the network status changes the signal


will dispatch, with a parameter indicating if the network has a connection or not. So listen for this signal with a function like

function statusChanged( hasConnection : Boolean ) :void { ... }

which you add to the signal with

NetworkStatus.networkStatusChanged.add( statusChanged );

To stop polling for changes in the connection status

NetworkStatus.stopCheckingForConnection() : void


This project is licensed under the BSD license