UHBConnectivityManager 0.1.2

UHBConnectivityManager 0.1.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Aug 2016

Maintained by Umair Hassan Baig.



UHBConnectivity manager is an block oriented objective-c wrapper on Reachability. You can observe network changes by blocks.

Example

You can register any object with a Unique Identifier

[[UHBConnectivityManager shared] registerCallBack:^(ConnectivityManagerConnectionStatus status) {
      if (status == ConnectivityManagerConnectionStatusConnected) {
          // Device connected to internet: You may update your data here
      }
      else
      {
          // Show alert 
      }
} forIdentifier:self.memoryAddress];

You may unregister the callback in Dealloc method or anywhere you want.

[[UHBConnectivityManager shared] removeCallBackForIdentitfier:self.memoryAddress];

Requirements

iOS Version 7.0 or greater

Installation

UHBConnectivityManager is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "UHBConnectivityManager"

Author

Umair Hassan Baig, [email protected]

License

UHBConnectivityManager is available under the MIT license. See the LICENSE file for more info.