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

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

isNetworkReachable

Returns YES when the Internet is reachable (via WiFi or WWAN)

- (BOOL)isNetworkReachable

Declared In

RKReachabilityObserver.h

networkStatus

Returns the current network status

- (RKReachabilityNetworkStatus)networkStatus

Declared In

RKReachabilityObserver.h