RKReachabilityObserver Class Reference
Inherits from | NSObject |
Declared in | RKReachabilityObserver.h RKReachabilityObserver.m |
Overview
Provides a notification based interface for monitoring changes to network status8
Portions of this software are derived from the Apple Reachability code sample: http://developer.apple.com/library/ios/#samplecode/Reachability/Listings/Classes_Reachability_m.html
Tasks
-
+ reachabilityObserverWithHostName:
Create a new reachability observer against a given hostname. The observer will monitor the ability to reach the specified hostname and emit notifications when its reachability status changes.
-
– networkStatus
Returns the current network status
-
– isNetworkReachable
Returns YES when the Internet is reachable (via WiFi or WWAN)
-
– isConnectionRequired
Returns YES when WWAN may be available, but not active until a connection has been established.
Class Methods
reachabilityObserverWithHostName:
Create a new reachability observer against a given hostname. The observer will monitor the ability to reach the specified hostname and emit notifications when its reachability status changes.
+ (RKReachabilityObserver *)reachabilityObserverWithHostName:(NSString *)hostName
Discussion
Note that the observer will be scheduled in the current run loop.
Declared In
RKReachabilityObserver.h
Instance Methods
isConnectionRequired
Returns YES when WWAN may be available, but not active until a connection has been established.
- (BOOL)isConnectionRequired
Declared In
RKReachabilityObserver.h