// // UIDevice-Reachability.h // CpcProject // // Created by by Jason Lee on 13. 6. 28.. // Copyright (c) jasondevelop. All rights reserved. // @import UIKit; #define SUPPORTS_UNDOCUMENTED_API 1 @protocol ReachabilityWatcher - (void) reachabilityChanged; @end @interface UIDevice (Reachability) + (BOOL) scheduleReachabilityWatcher: (id) watcher; + (void) unscheduleReachabilityWatcher; + (NSString *) localWiFiIPAddress; + (BOOL) networkAvailable; + (BOOL) activeWWAN; + (BOOL) activeWLAN; #ifdef SUPPORTS_UNDOCUMENTED_API // Don't use this code in real life, boys and girls. It is not App Store friendly. // It is, however, really nice for testing callbacks + (void) setAPMode: (BOOL) yorn; #endif @end