Conforms to NSObject
Declared in BVDelegate.h

Overview

BVDelegate is a protocol which notifies the client of API request status updates. Each request is guaranteed to result in one of either didReceiveResponse: or didFailToReceiveResponse:. All BVPost or BVMediaPost requests will generate one or more didSendBodyData: callbacks.

Instance Methods

didFailToReceiveResponse:forRequest:

Delegate callback for the case that the request fails.

- (void)didFailToReceiveResponse:(id)err forRequest:(id)request

Parameters

err

Contains specifics about the error.

request

The object which generated the request.

Declared In

BVDelegate.h

didReceiveResponse:forRequest:

Delegate callback for the case that the request is successful.

- (void)didReceiveResponse:(id)response forRequest:(id)request

Parameters

response

The deserialized response.

request

The object which generated the request.

Declared In

BVDelegate.h

didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:forRequest:

Delegate callback to indicate that body data has been sent as part of this request. This method will only be called for submission requests and will be called one or more times as the data is sent.

- (void)didSendBodyData:(id)bytesWritten totalBytesWritten:(id)totalBytesWritten totalBytesExpectedToWrite:(id)totalBytesExpectedToWrite forRequest:(id)request

Parameters

bytesWritten

The number of bytes written in this update.

totalBytesWritten

The total number of bytes written for this entire request.

totalBytesExpectedToWrite

The total number of bytes expected to be written as part of this request.

request

The object which generated the request.

Declared In

BVDelegate.h