<GCKRequestDelegate> Protocol

  • The GCKRequestDelegate protocol defines methods to handle the lifecycle of a GCKRequest, providing callbacks for success, failure, and abortion.

  • requestDidComplete: is called when a request successfully completes.

  • request:didFailWithError: is called when a request fails, providing an error object with details about the failure.

  • request:didAbortWithReason: is called when a request is no longer tracked, indicating it may not have completed or failed, with a reason for the abortion.

<GCKRequestDelegate> Protocol Reference

Overview

The GCKRequest delegate protocol.

Since
3.0

Inherits <NSObjectNSObject>.

Instance Method Summary

(void) - requestDidComplete:
 Called when the request has successfully completed. More...
 
(void) - request:didFailWithError:
 Called when the request has failed. More...
 
(void) - request:didAbortWithReason:
 Called when the request is no longer being tracked. More...
 

Method Detail

- (void) requestDidComplete: (GCKRequest *)  request
optional

Called when the request has successfully completed.

Parameters
requestThe request.
- (void) request: (GCKRequest *)  request
didFailWithError: (GCKError *)  error 
optional

Called when the request has failed.

Parameters
requestThe request.
errorThe error describing the failure.
- (void) request: (GCKRequest *)  request
didAbortWithReason: (GCKRequestAbortReason)  abortReason 
optional

Called when the request is no longer being tracked.

It does not guarantee that the request has succeed or failed.

Parameters
requestThe request.
abortReasonThe reason why the request is no longer being tracked.