LQDownloadManager

Async download file manager, support resum broken downloads, support background download, provide listening state.

MIT License

Stars
7
Committers
3

LQDownloadManager

LQDownloadManager is a download manager in Swift, support background mode.

Example

Clone the repo, Run the example project.

Requirements

  • iOS 8.0+
  • Xcode 8.0+

Installation

CocoaPods 1.0.0+ is required to build LQDownloadManager

To integrate LQDownloadManager into your Xcode project using CocoaPods, specify it in your Podfile:

pod "LQDownloadManager"

Usage

LQDownloadManager.shared.download("#download file url string#", progress: { 
  progress in
  
      print("progress: \(progress)")
      
  }) { 
    status in
 
      switch status {
      case .start:
      
        // ...
      case .suspend:
      
       // ...
      case .complete:
      
       // ...
      case .failed:
      
       // ...
      }
    }

Contact me

Email: [email protected] weibo: 青木KON

License

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

Package Rankings
Top 14.57% on Cocoapods.org
Related Projects