ProgressDelegate protocol

Defines default delegate methods for upload and download progress notification.

Syntax

@protocol ProgressDelegate

Derived classes

Members

All members of ProgressDelegate, including inherited members.

Methods
Method Description
- (void) request: (id< Requesting >) request didReceiveBytes: (long long) bytes Delegate method called when the request receives data.
- (void) request: (id< Requesting >) request didSendBytes: (long long) bytes Delegate method called when the request sends data.
- (void) request: (id< Requesting >) request incrementDownloadSizeBy: (long long) newLength Delegate method called when the request needs to change the download content size.
- (void) request: (id< Requesting >) request incrementUploadSizeBy: (long long) newLength Delegate method called when the request needs to change the length of the content to be uploaded.
- (void) setProgress: (float) newProgress Delegate method called to update UIProgressViews.

Usage

Protocol to be adapted by client classes to hook in for didReceiveBytes, didSendBytes, incrementDownloadSizeBy, and incrementUploadSizeBy delegates.