<GCKRequestDelegate> Protocol

  • GCKRequestDelegate is a protocol used to track the status of an asynchronous GCKRequest.

  • The protocol includes methods to notify when a request completes successfully, fails with an error, or is no longer being tracked.

  • The requestDidComplete: method is called when a request finishes without errors.

  • The request:didFailWithError: method is called when a request encounters an error.

  • The request:didAbortWithReason: method is called when a request is no longer being tracked, regardless of success or failure.

<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.