YapReachability
@interface YapReachability : NSObject
@property (nonatomic, copy) NetworkReachableBlock reachableBlock;
@property (nonatomic, copy) NetworkUnreachableBlock unreachableBlock;
@property (nonatomic, assign) BOOL reachableOnWWAN;
+(YapReachability*)reachabilityWithHostname:(NSString*)hostname;
// This is identical to the function above, but is here to maintain
//compatibility with Apples original code. (see .m)
+(YapReachability*)reachabilityWithHostName:(NSString*)hostname;
+(YapReachability*)reachabilityForInternetConnection;
+(YapReachability*)reachabilityWithAddress:(void *)hostAddress;
+(YapReachability*)reachabilityForLocalWiFi;
-(YapReachability *)initWithReachabilityRef:(SCNetworkReachabilityRef)ref;
-(BOOL)startNotifier;
-(void)stopNotifier;
-(BOOL)isReachable;
-(BOOL)isReachableViaWWAN;
-(BOOL)isReachableViaWiFi;
// WWAN may be available, but not active until a connection has been established.
// WiFi may require a connection for VPN on Demand.
-(BOOL)isConnectionRequired; // Identical DDG variant.
-(BOOL)connectionRequired; // Apple's routine.
// Dynamic, on demand connection?
-(BOOL)isConnectionOnDemand;
// Is user intervention required?
-(BOOL)isInterventionRequired;
-(YapReachabilityStatus)currentReachabilityStatus;
-(SCNetworkReachabilityFlags)reachabilityFlags;
-(NSString*)currentReachabilityString;
-(NSString*)currentReachabilityFlags;
@end
Undocumented
-
Undocumented
Declaration
Objective-C
@property (nonatomic, copy) NetworkReachableBlock reachableBlockSwift
var reachableBlock: NetworkReachableBlock! { get set } -
Undocumented
Declaration
Objective-C
@property (nonatomic, copy) NetworkUnreachableBlock unreachableBlockSwift
var unreachableBlock: NetworkUnreachableBlock! { get set } -
Undocumented
Declaration
Objective-C
@property (nonatomic, assign) BOOL reachableOnWWANSwift
var reachableOnWWAN: Bool { get set } -
Undocumented
Declaration
Objective-C
+(YapReachability*)reachabilityWithHostname:(NSString*)hostname;Swift
/*not inherited*/ init!(hostname: String!) -
Undocumented
Declaration
Objective-C
+(YapReachability*)reachabilityWithHostName:(NSString*)hostname;Swift
/*not inherited*/ init!(hostName hostname: String!) -
Undocumented
Declaration
Objective-C
+(YapReachability*)reachabilityForInternetConnection;Swift
class func forInternetConnection() -> YapReachability! -
Undocumented
Declaration
Objective-C
+(YapReachability*)reachabilityWithAddress:(void *)hostAddress;Swift
/*not inherited*/ init!(address hostAddress: UnsafeMutableRawPointer!) -
Undocumented
Declaration
Objective-C
+(YapReachability*)reachabilityForLocalWiFi;Swift
class func forLocalWiFi() -> YapReachability! -
Undocumented
Declaration
Objective-C
-(YapReachability *)initWithReachabilityRef:(SCNetworkReachabilityRef)ref;Swift
init!(reachabilityRef ref: SCNetworkReachability!) -
Undocumented
Declaration
Objective-C
-(BOOL)startNotifier;Swift
func startNotifier() -> Bool -
Undocumented
Declaration
Objective-C
-(void)stopNotifier;Swift
func stopNotifier() -
Undocumented
Declaration
Objective-C
-(BOOL)isReachable;Swift
func isReachable() -> Bool -
Undocumented
Declaration
Objective-C
-(BOOL)isReachableViaWWAN;Swift
func isReachableViaWWAN() -> Bool -
Undocumented
Declaration
Objective-C
-(BOOL)isReachableViaWiFi;Swift
func isReachableViaWiFi() -> Bool -
Undocumented
Declaration
Objective-C
-(BOOL)isConnectionRequired;Swift
func isConnectionRequired() -> Bool -
Undocumented
Declaration
Objective-C
-(BOOL)connectionRequired;Swift
func connectionRequired() -> Bool -
Undocumented
Declaration
Objective-C
-(BOOL)isConnectionOnDemand;Swift
func isConnectionOnDemand() -> Bool -
Undocumented
Declaration
Objective-C
-(BOOL)isInterventionRequired;Swift
func isInterventionRequired() -> Bool -
Undocumented
Declaration
Objective-C
-(YapReachabilityStatus)currentReachabilityStatus;Swift
func currentReachabilityStatus() -> YapReachabilityStatus -
Undocumented
Declaration
Objective-C
-(SCNetworkReachabilityFlags)reachabilityFlags;Swift
func reachabilityFlags() -> SCNetworkReachabilityFlags -
Undocumented
Declaration
Objective-C
-(NSString*)currentReachabilityString;Swift
func currentReachabilityString() -> String! -
Undocumented
Declaration
Objective-C
-(NSString*)currentReachabilityFlags;Swift
func currentReachabilityFlags() -> String!
YapReachability Class Reference