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_id
Declared In
PWDataFile.h
extension
Type (file extension such as: txt, pdf etc).
@property (nonatomic) NSString *extension
Declared In
PWDataFile.h
remainingSize
Remaining file size string that needs to be received. (approx)
@property (nonatomic) NSString *remainingSize
Declared In
PWDataFile.h
totalChunks
Total number of chunks: receiving one by one.
@property (nonatomic) NSInteger totalChunks
Declared In
PWDataFile.h
remainingChunks
Total number of remaining chunks.
@property (nonatomic) NSInteger remainingChunks
Declared In
PWDataFile.h
lostChunks
Total number of how many chunks have lost during transmission.
@property (nonatomic) NSInteger lostChunks
Declared In
PWDataFile.h
chunksQueue
Add chunks into ‘chunksQueue’ array and combine into single data at the end of the transmission.
@property (nonatomic, strong) NSMutableArray *chunksQueue
Declared In
PWDataFile.h
mergedData
Complete binary data generated by combining chunks.
@property (nonatomic, strong) NSData *mergedData
Declared In
PWDataFile.h
increasePercentBy
Attribute to calculate progress and notify at each 10%.
@property (assign) float increasePercentBy
Declared In
PWDataFile.h
receivedPercent
Attribute to determine percent of received data.
@property (assign) float receivedPercent
Declared In
PWDataFile.h