TuSDKNKDownloadAdapter Class Reference
Inherits from | TuSDKTKImageViewTask : NSObject |
---|---|
Declared in | TuSDKNKDownloadAdapter.h |
downloadDelegate
下载状态委托
@property (nonatomic, weak) id<TuSDKNKDownloadMangerDelegate> downloadDelegate
Declared In
TuSDKNKDownloadAdapter.h
– containsWithGroupId:
是否存在包ID
- (BOOL)containsWithGroupId:(uint64_t)groupId
Parameters
groupId |
包ID |
---|
Return Value
BOOL 是否存在包ID
Declared In
TuSDKNKDownloadAdapter.h
– tryLoadTaskDataWithCache
尝试从本地缓存获取任务数据
- (void)tryLoadTaskDataWithCache
Declared In
TuSDKNKDownloadAdapter.h
– trySaveTaskDataInCache
尝试将任务数据保存到本地缓存
- (void)trySaveTaskDataInCache
Declared In
TuSDKNKDownloadAdapter.h
– downloadWithIdt:key:fileId:
下载资源包
- (void)downloadWithIdt:(uint64_t)idt key:(NSString *)key fileId:(NSString *)fileId
Parameters
idt |
资源包ID |
---|---|
key |
下载SN |
fileId |
文件ID |
Declared In
TuSDKNKDownloadAdapter.h
– cancelDownloadWithIdt:
取消下载资源包
- (void)cancelDownloadWithIdt:(uint64_t)idt
Parameters
idt |
资源包ID |
---|
Declared In
TuSDKNKDownloadAdapter.h
– removeDownloadWithIdt:
删除下载资源包
- (void)removeDownloadWithIdt:(uint64_t)idt
Parameters
idt |
资源包ID |
---|
Declared In
TuSDKNKDownloadAdapter.h
– removeDownloadDataWithIdt:
删除下载包数据
- (void)removeDownloadDataWithIdt:(uint64_t)idt
Parameters
idt |
资源包ID |
---|
Declared In
TuSDKNKDownloadAdapter.h
– appenDownloaded:
添加已下载完成数据
- (BOOL)appenDownloaded:(TuSDKNKDownloadItem *)item
Return Value
BOOL 是否已加载
Discussion
@param item 下载对象
Declared In
TuSDKNKDownloadAdapter.h
– isDownloadingWithIdt:
- 是否正在下载某个资源
- (BOOL)isDownloadingWithIdt:(uint64_t)idt
Discussion
- @param idt 下载对象ID *
- @return true: 下载中
Declared In
TuSDKNKDownloadAdapter.h
– allGroupID
获取所有包ID列表
- (NSArray *)allGroupID
Return Value
allGroupID 所有包ID列表
Declared In
TuSDKNKDownloadAdapter.h
– jsonAllData
获取所有json数据
- (NSString *)jsonAllData
Return Value
json 数据
Declared In
TuSDKNKDownloadAdapter.h