<GCKRequestDelegate> Protocol

  • The GCKRequestDelegate protocol defines methods to handle the lifecycle of a GCKRequest.

  • It includes methods to notify the delegate when a request completes successfully, fails, or is aborted.

  • Delegate methods provide information about the request and any errors or reasons for abortion.

  • This protocol is essential for tracking the status of asynchronous requests made using the Google Cast SDK.

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