Skip to content

iOS wrapper around AFNetworking makes it easy to use

License

Notifications You must be signed in to change notification settings

maximtart/LGConnection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LGConnection

iOS wrapper around AFNetworking makes it easy to use.

Installation

With source code

With CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the "Get Started" section for more details.

Podfile

platform :ios, '6.0'
pod 'LGConnection', '~> 1.0.0'

Usage

In the source files where you need to use the library, import the header file:

#import "LGConnection.h"

Initialization

You have several methods for initialization:

- (instancetype)initWithRepeatAfterConnectionLost:(BOOL)repeat;

- (instancetype)initWithRepeatAfterConnectionLost:(BOOL)repeat
                            connectionLostHandler:(void(^)())connectionLostHandler
                         connectionRestoreHandler:(void(^)())connectionRestoreHandler;

LGConnection use Reachability to watch for internet connection. "RepeatAfterConnectionLost" means that if connection is lost, then all requests will try to reconnect while connection is restoring.

More

For more details see LGConnection.h

License

LGConnection is released under the MIT license. See LICENSE for details.

About

iOS wrapper around AFNetworking makes it easy to use

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 99.0%
  • Ruby 1.0%