Skip to content

文件下载支持断点续传和文件完整性校验

License

Notifications You must be signed in to change notification settings

PggMan/PGContinueDownload

Repository files navigation

PGContinueDownload

CI Status Version License Platform

Example

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

Requirements

Installation

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

pod 'PGContinueDownload'

Use

  
 [[PGDownLoaderManager shareInstance] downLoadWithURL:kURL msgBlock:^(long long totalSize, NSString * _Nonnull downLoadedPath) {
        NSLog(@"开始下载");
    } progress:^(float progress) {
        NSLog(@"下载中--%f", progress);
    } success:^(NSString * _Nonnull downLoadedPath) {
        NSLog(@"完成");
    } failed:^(NSString * _Nonnull errorMsg) {
        NSLog(@"失败");
    }];

Author

PggMan, [email protected]

License

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

About

文件下载支持断点续传和文件完整性校验

Resources

License

Stars

Watchers

Forks

Packages

No packages published