TTDownloadData Class Reference
Inherits from | NSObject |
---|---|
Declared in | TTDownloadData.h |
Overview
TTDownloadData holds information about an ongoing or queued attachment download, use it to display download progress and state changes.
downloadState
A value representing the current state of the download. For possible values, see TTDownloadItemState
.
@property (nonatomic) TTDownloadItemState downloadState
Declared In
TTDownloadData.h
progress
A value that represents fraction of the download completed.
@property (nonatomic) float progress
Discussion
Note: max value of progress
is 1.0.
Declared In
TTDownloadData.h
downloadedSize
A value representing current downloaded size.
@property (nonatomic) unsigned long long downloadedSize
Declared In
TTDownloadData.h
fileSize
A value representing the total file size to download.
@property (nonatomic) unsigned long long fileSize
Declared In
TTDownloadData.h
token
An identifying token for the download data.
@property (nonatomic, strong) NSString *token
Declared In
TTDownloadData.h
itemManuallyPaused
A BOOL value representing if the download has been paused by the user.
@property (nonatomic) BOOL itemManuallyPaused
Declared In
TTDownloadData.h
downloadStateChangedBlock
A block that gets invoked any time that the download state changes.
@property (nonatomic, copy) void ( ^ ) ( TTDownloadItemState ) downloadStateChangedBlock
Parameters
TTDownloadItemState |
New download state. |
---|
Declared In
TTDownloadData.h
– prepareForReuse
Clears current state so TTDownloadData can be reused.
- (void)prepareForReuse
Declared In
TTDownloadData.h