GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - agelessman/MCDownloadManager: A simple and convenient multi task download manager

BranchesTags
Open more actions menu

Latest commit

 

History

38 Commits
38 Commits

Folders and files

NameName
Last commit message
Last commit date
MCDownloadManager.xcodeproj
MCDownloadManager.xcodeproj
 
 
MCDownloadManager
MCDownloadManager
 
 
LICENSE
LICENSE
 
 
MCDownloadManager.podspec
MCDownloadManager.podspec
 
 
README.md
README.md
 
 

Repository files navigation

MCDownloadManager

A simple and convenient multi task download manager

Attention

这个版本默认只支持同时下载10个文件 This version only supports 10 file downloads at the same time.

若要支持更多,请修改下边的代码

configuration.HTTPMaximumConnectionsPerHost = 10;

添加了速度提示(比如:400KB/s)

支持后台和锁屏下载

Installation

Cocoapods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 1.1.0+ is required to build MCDownloadManager 1.0.0+.

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

pod 'MCDownloadManager', '~> 1.0.3'

Then, run the following command:

$ pod install

Usage

- (void)download {
    [[MCDownloadManager defaultInstance] downloadFileWithURL:self.url
                                                    progress:^(NSProgress * _Nonnull downloadProgress, MCDownloadReceipt *receipt) {
                                                        
                                                        if ([receipt.url isEqualToString:self.url]) {
                                                            self.progressView.progress = downloadProgress.fractionCompleted ;
                                                        }
                                    
                                                    }
                                                 destination:nil
                                                     success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, NSURL * _Nonnull filePath) {
                                                         [self.button setTitle:@"播放" forState:UIControlStateNormal];
                                                     }
                                                     failure:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, NSError * _Nonnull error) {
                                                         [self.button setTitle:@"重新下载" forState:UIControlStateNormal];
                                                     }];

}

About

A simple and convenient multi task download manager

Resources

Readme
MIT license
Activity

Stars

207 stars

Watchers

4 watching

Forks

41 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.