TTUploadData Class Reference
Inherits from | NSObject |
---|---|
Declared in | TTUploadData.h |
Overview
TTUploadData holds information about an ongoing or queued attachment upload, use it to display upload progress and state changes.
uploadState
Current state of the upload. For possible values, see TTUploadItemState
.
@property (nonatomic) TTUploadItemState uploadState
Declared In
TTUploadData.h
progress
A value that represents fraction of the upload completed.
@property (nonatomic) float progress
Discussion
Max value of progress
is 1.0.
Declared In
TTUploadData.h
uploadedSize
A value representing current uploaded size.
@property (nonatomic) unsigned long long uploadedSize
Declared In
TTUploadData.h
fileSize
A value representing the total file size to upload.
@property (nonatomic) unsigned long long fileSize
Declared In
TTUploadData.h
token
An identifying token for the upload data.
@property (nonatomic, strong) NSString *token
Declared In
TTUploadData.h
uploadStateChangedBlock
A block that gets invoked any time that the upload state changes.
@property (nonatomic, copy) void ( ^ ) ( TTUploadItemState ) uploadStateChangedBlock
Parameters
TTUploadItemState |
New upload state. |
---|
Declared In
TTUploadData.h
– prepareForReuse
Clears current state so TTUploadData can be reused.
- (void)prepareForReuse
Declared In
TTUploadData.h