AIAuthenticationDelegate

Extends Protocol:
NSObject
Version:
1.0
Declared In:

Introduction

Applications calling AIMobileLib APIs must implement the methods of this protocol to receive success and failure information.



Methods

-requestDidFail:

The API calls this delegate when it fails, passing the result.

-requestDidSucceed:

The API calls this delegate when it completes successfully, passing the result.


requestDidFail:


The API calls this delegate when it fails, passing the result.

@required

- (void) requestDidFail:(APIError*) errorResponse;
Parameters
errorResponse

A APIResult object containing the information about the API and the error that occurred.

Discussion

See APIError for more information on the content of the result.

Availability
1.0

requestDidSucceed:


The API calls this delegate when it completes successfully, passing the result.

@required

- (void) requestDidSucceed:(APIResult*) apiResult;
Parameters
apiResult

A APIResult object containing the information about the calling API and the result generated.

Discussion

See APIResult for more information on the content of the apiResult.

Availability
1.0