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 uploadStateDeclared In
TTUploadData.h
progress
A value that represents fraction of the upload completed.
@property (nonatomic) float progressDiscussion
Max value of progress is 1.0.
Declared In
TTUploadData.h
uploadedSize
A value representing current uploaded size.
@property (nonatomic) unsigned long long uploadedSizeDeclared In
TTUploadData.h
fileSize
A value representing the total file size to upload.
@property (nonatomic) unsigned long long fileSizeDeclared In
TTUploadData.h
token
An identifying token for the upload data.
@property (nonatomic, strong) NSString *tokenDeclared In
TTUploadData.h
uploadStateChangedBlock
A block that gets invoked any time that the upload state changes.
@property (nonatomic, copy) void ( ^ ) ( TTUploadItemState ) uploadStateChangedBlockParameters
TTUploadItemState |
New upload state. |
|---|
Declared In
TTUploadData.h
– prepareForReuse
Clears current state so TTUploadData can be reused.
- (void)prepareForReuseDeclared In
TTUploadData.h