PWDataFile Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | PWDataFile.h |
Overview
An Objective-C wrapper for a PWDataFile object. It holds all the information of incoming file/data.
Warning: Only applicable when data is transmitting in chunks.
Properties
data_id
An Identifier of received data: all data chunks must have same identifier to identify that they belong to same file.
@property (nonatomic) NSString *data_idDeclared In
PWDataFile.h
extension
Type (file extension such as: txt, pdf etc).
@property (nonatomic) NSString *extensionDeclared In
PWDataFile.h
remainingSize
Remaining file size string that needs to be received. (approx)
@property (nonatomic) NSString *remainingSizeDeclared In
PWDataFile.h
totalChunks
Total number of chunks: receiving one by one.
@property (nonatomic) NSInteger totalChunksDeclared In
PWDataFile.h
remainingChunks
Total number of remaining chunks.
@property (nonatomic) NSInteger remainingChunksDeclared In
PWDataFile.h
lostChunks
Total number of how many chunks have lost during transmission.
@property (nonatomic) NSInteger lostChunksDeclared In
PWDataFile.h
chunksQueue
Add chunks into ‘chunksQueue’ array and combine into single data at the end of the transmission.
@property (nonatomic, strong) NSMutableArray *chunksQueueDeclared In
PWDataFile.h
mergedData
Complete binary data generated by combining chunks.
@property (nonatomic, strong) NSData *mergedDataDeclared In
PWDataFile.h
increasePercentBy
Attribute to calculate progress and notify at each 10%.
@property (assign) float increasePercentByDeclared In
PWDataFile.h
receivedPercent
Attribute to determine percent of received data.
@property (assign) float receivedPercentDeclared In
PWDataFile.h