<TRCProgressHandler> Protocol Reference

TRCProgressHandler describes methods of object, used to track download and upload progress More...

Inheritance diagram for <TRCProgressHandler>:

Instance Methods

(void) - setUploadProgressBlock:
 Sets upload block, which called after each upload progress change. More...
 
(void) - setDownloadProgressBlock:
 Sets download block, which called after each upload progress change. More...
 
(void) - pause
 Pauses current upload or download progress. More...
 
(void) - resume
 Resumes current upload or download progress. More...
 
(void) - cancel
 Cancels current upload or download progress. More...
 
(TRCProgressHandlerState) - state
 Returns current state of network operation. More...
 

Detailed Description

TRCProgressHandler describes methods of object, used to track download and upload progress

Method Documentation

◆ setUploadProgressBlock:()

- (void) setUploadProgressBlock: (TRCUploadProgressBlock block

Sets upload block, which called after each upload progress change.

Note
This block is retained until network operation in progress

◆ setDownloadProgressBlock:()

- (void) setDownloadProgressBlock: (TRCDownloadProgressBlock block

Sets download block, which called after each upload progress change.

Note
This block is retained until network operation in progress

◆ pause()

- (void) pause

Pauses current upload or download progress.

◆ resume()

- (void) resume

Resumes current upload or download progress.

◆ cancel()

- (void) cancel

Cancels current upload or download progress.

◆ state()

- (TRCProgressHandlerState) state

Returns current state of network operation.

Reimplemented in TRCSessionTaskContext.