Accela SDK for iOS  V3.0
<AMRequestDelegate> Protocol Reference

#import <AMRequest.h>

Inheritance diagram for <AMRequestDelegate>:
AccelaMobile

List of all members.

Public Member Functions

(void) - amRequestStarted:
(void) - amRequest:didReceiveResponse:
(void) - amRequest:didFailWithError:
(void) - amRequest:didLoad:
(void) - amRequest:receivedBytes:total:
(void) - amRequest:sendBytes:

Detailed Description

Defines the methods that a delegate of a AMRequest object may implement.

All the methods defined in this protocol are optional.

Since:
1.0

Member Function Documentation

- (void) amRequest: (AMRequest *)  request
didFailWithError: (AMError *)  error 
[optional]

Called when an error prevents the request from completing successfully.

Since:
1.0
- (void) amRequest: (AMRequest *)  request
didLoad: (id)  result 
[optional]

Called when a request returns and its response has been parsed into an object.

The resulting object format may be a dictionary or an array.

Note that the result is nil if the amDownloadDestinationPath property bas been set to a valid value.

Since:
1.0
- (void) amRequest: (AMRequest *)  request
didReceiveResponse: (NSDictionary *)  httpHeaders 
[optional]

Called when the server responds and begins to send back data.

Since:
1.0
- (void) amRequest: (AMRequest *)  request
receivedBytes: (long long)  bytes
total: (long long)  total 
[optional]

Called when the request receives some data.

Note that the total is 0 if there is no Content-Length variable in the HTTP herders

Since:
1.0
- (void) amRequest: (AMRequest *)  request
sendBytes: (long long)  bytes 
[optional]

Called when the request sends some data.

Since:
1.0
- (void) amRequestStarted: (AMRequest *)  request [optional]

Called just before the request is sent to the server.

Since:
1.0

The documentation for this protocol was generated from the following file:
 All Classes Functions Properties