Commit c0f6b9eb5e9867afcfaee6e6ab5f152d1834e9bd
1 parent
57857b20
0.0.2
Showing
2 changed files
with
3 additions
and
1 deletions
CNLiveDownloadManager.podspec
CNLiveDownloadManager/Classes/ViewModel/CNLiveDownloadManager.h
| @@ -9,6 +9,8 @@ | @@ -9,6 +9,8 @@ | ||
| 9 | @class CNLiveAlbumAudioListModel; | 9 | @class CNLiveAlbumAudioListModel; |
| 10 | NS_ASSUME_NONNULL_BEGIN | 10 | NS_ASSUME_NONNULL_BEGIN |
| 11 | @interface CNLiveDownloadManager : NSObject | 11 | @interface CNLiveDownloadManager : NSObject |
| 12 | +// 初始化下载单例,若之前程序杀死时有正在下的任务,会自动恢复下载 | ||
| 13 | ++ (instancetype)shareManager; | ||
| 12 | // 开始下载 | 14 | // 开始下载 |
| 13 | - (void)startDownloadTask:(CNLiveAlbumAudioListModel *)model; | 15 | - (void)startDownloadTask:(CNLiveAlbumAudioListModel *)model; |
| 14 | 16 |