Latest 3.3
Homepage https://github.com/mzeeshanid/MZDownloadManager
License BSD
Platforms ios 9.0
Frameworks UIKit, Foundation
Authors

CI Status
Version
License
Platform

mzdownload manager hero

Features

This download manager uses the iOS 7 NSURLSession api to download files.

  • Can download large files if app is in background.
  • Can download files if app is in background.
  • Can download multiple files at a time.
  • It can resume interrupted downloads.
  • User can also pause the download.
  • User can retry any download if any error occurred during download.

Screencast:

http://screencast.com/t/Rzm0xoRjGF

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Xcode 8
  • Minimum deployment target is iOS 9.
  • For resuming downloads server must have resuming support.

Installation

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

pod "MZDownloadManager"

Update

New helper functions added to support downloading at custom path. Example project is also updated about the usage.

To download file at custom path you can use the following instance method of MZDownloadManager:

public func addDownloadTask(fileName: String, fileURL: String, destinationPath: String)

When download completes:

  • It will check if the destination folder still exists then it will move the downloaded file at the specified destination and call success delegate method.
  • If destination folder does not exists, following delegate method will provide an opportunity to handle the downloaded file appropriately.

optional func downloadRequestDestinationDoestNotExists(downloadModel: MZDownloadModel, index: Int, location: NSURL)

  • If the above delegate method is not implemented then it will just called the failure method.

Important: This delegate method will be called on the session’s queue.

Author

Muhammad Zeeshan, [email protected]

If you find MZDownloadManager userful consider donating thanks ;)

Donate button

License

MZDownloadManager is available under the BSD license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MZDownloadManager",
    "version": "3.3",
    "summary": "NSURLSession based download manager.",
    "description": "Download large files even in background, download multiple files, resume interrupted downloads.",
    "homepage": "https://github.com/mzeeshanid/MZDownloadManager",
    "screenshots": "https://cloud.githubusercontent.com/assets/2767152/3459842/0c40fe66-0211-11e4-90d8-d8942c8f8651.png",
    "license": "BSD",
    "authors": {
        "Muhammad Zeeshan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mzeeshanid/MZDownloadManager.git",
        "tag": "3.3"
    },
    "social_media_url": "https://twitter.com/mzeeshanid",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "MZDownloadManager/Classes/**/*",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This