Skip to content

音频文件的下载工具,包括暂停和开始,以及下载中和下载完成的缓存处理

License

Notifications You must be signed in to change notification settings

WK726/WKFMDownLoadTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WKDownLoad

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

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

pod 'WKDownLoad'

WKFMDownLoad

音频下载逻辑的封装

用法:

在vc中直接调用方法:

-(void)downLoader:(NSURL *)url downLoadInfo:(downInfoType)downLoadInfo progress:(progressBlockType)progressBlock success:(successBlockType)successBlock failed:(failedBlockType)failedBlock;

第一个参数:url音频地址

第二个参数:下载信息的总大小

第三个参数:下载的进度

第四个参数:下载完成中后的路径

第四个参数:下载失败的处理

About

音频文件的下载工具,包括暂停和开始,以及下载中和下载完成的缓存处理

Resources

License

Stars

Watchers

Forks

Packages

No packages published