Instance Property

countOfBytesReceived

The number of bytes that the task has received from the server in the response body.

Declaration

@property(readonly) int64_t countOfBytesReceived;

Discussion

To be notified when this value changes, implement the URLSession:dataTask:didReceiveData: delegate method (for data and upload tasks) or the URLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite: method (for download tasks).

See Also

Obtaining Task Progress

progress

A representation of the overall task progress.

countOfBytesExpectedToReceive

The number of bytes that the task expects to receive in the response body.

countOfBytesExpectedToSend

The number of bytes that the task expects to send in the request body.

countOfBytesSent

The number of bytes that the task has sent to the server in the request body.

NSURLSessionTransferSizeUnknown

The total size of the transfer cannot be determined.