TuSDKNKDownloadTask Class Reference

Inherits from NSObject
Declared in TuSDKNKDownloadTask.h

Overview

下载任务

  item

下载对象

@property (nonatomic, readonly) TuSDKNKDownloadItem *item

Declared In

TuSDKNKDownloadTask.h

  delegate

下载任务委托

@property (nonatomic, weak) id<TuSDKNKDownloadTaskDelegate> delegate

Declared In

TuSDKNKDownloadTask.h

+ initWithItem:

初始化 下载任务

+ (instancetype)initWithItem:(TuSDKNKDownloadItem *)item

Parameters

item

下载对象

Return Value

item 下载任务

Declared In

TuSDKNKDownloadTask.h

– isEqual:idt:

是否匹配任务

- (BOOL)isEqual:(lsqDownloadTaskType)type idt:(uint64_t)idt

Parameters

type

下载类型

idt

下载资源ID

Return Value

BOOL 是否匹配任务

Declared In

TuSDKNKDownloadTask.h

– canRunTask

是否允许执行任务

- (BOOL)canRunTask

Return Value

canRunTask 是否允许执行任务

Declared In

TuSDKNKDownloadTask.h

– start

开始任务

- (void)start

Declared In

TuSDKNKDownloadTask.h

– clear

清理数据

- (void)clear

Declared In

TuSDKNKDownloadTask.h

– cancel

取消任务

- (void)cancel

Declared In

TuSDKNKDownloadTask.h