Difference between revisions of "CPNetworkObserver"

From iPhone Development Wiki
Jump to: navigation, search
(Created page with "'''CPNetworkObserver''' is a part of AppSupport.framework which allows you to query some information regarding networking status on iOS. {{function signature |signature=-...")
 
m
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''CPNetworkObserver''' is a part of [[AppSupport.framework]] which allows you to query some information regarding networking status on iOS.
+
'''CPNetworkObserver''' allows you to query information regarding networking status on iOS.
 +
 
 +
== Methods ==
  
 
{{function signature
 
{{function signature
|signature=-(CPNetworkObserver *)sharedNetworkObserver;
+
|signature=+(CPNetworkObserver *)sharedNetworkObserver;
 
}}
 
}}
  
 
Obtains the shared network observer.
 
Obtains the shared network observer.
 +
 +
----
  
 
{{function signature
 
{{function signature
Line 11: Line 15:
 
}}
 
}}
  
Tests if the network is reachable.
+
Tests if the network is reachable. (has shown unrealiable at times)
 +
 
 +
----
  
 
{{function signature
 
{{function signature
Line 18: Line 24:
  
 
Tests whether Wi-Fi is enabled.
 
Tests whether Wi-Fi is enabled.
 +
 +
== External links ==
 +
 +
{{IPFHeader|AppSupport}}

Latest revision as of 16:34, 26 October 2014

CPNetworkObserver allows you to query 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.

External links