LQDownloadManager 0.0.5

LQDownloadManager 0.0.5

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布上次发布2017年9月
SwiftSwift 版本3.0
SPM支持 SPM

ALVIN-YANG 维护。



  • 作者:
  • ALVIN-YANG

LQDownloadManager

LQDownloadManager 是一款 Swift 编写的下载管理器,支持后台模式。

示例

从仓库克隆,运行示例项目。

要求

  • iOS 8.0+
  • Xcode 8.0+

安装

CocoaPods 1.0.0+ 是构建 LQDownloadManager 所必需的。

要将 LQDownloadManager 集成到您的 Xcode 项目中,请使用 CocoaPods,并在您的 Podfile 中指定它。

pod "LQDownloadManager"

使用

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:
        ...
      }
    }

联系我

Email: [email protected]
weibo: 青木KON

许可证

MarkyMark 可在 MIT 许可证下使用。有关更多信息,请参阅 LICENSE 文件。