Difference between revisions of "CPNetworkObserver"

From iPhone Development Wiki
Jump to: navigation, search
(Transclude IPFHeader, registering this as a class in AppSupport.framework. fwlink AppSupport)
Line 1: Line 1:
'''CPNetworkObserver''' is a part of [[AppSupport.framework]] which allows you to query some information regarding networking status on iOS.
+
'''CPNetworkObserver''' is a part of {{fwlink|AppSupport}} which allows you to query some information regarding networking status on iOS.
  
 
== Methods ==
 
== Methods ==
Line 24: Line 24:
  
 
Tests whether Wi-Fi is enabled.
 
Tests whether Wi-Fi is enabled.
 +
 +
== Header ==
 +
{{IPFHeader|AppSupport}}

Revision as of 22:03, 9 December 2012

CPNetworkObserver is a part of AppSupport which allows you to query some information regarding networking status on iOS.

Methods

Signature -(CPNetworkObserver *)sharedNetworkObserver;

Obtains the shared network observer.


Signature -(BOOL)isNetworkReachable;

Tests if the network is reachable. (has shown unrealiable at times)


Signature -(BOOL)isWiFiEnabled;

Tests whether Wi-Fi is enabled.

Header