3 #import <GoogleCast/GCKDefines.h>     5 #import <Foundation/Foundation.h>     8 @protocol GCKRequestDelegate;
    10 typedef NSInteger GCKRequestID;
    12 GCK_ASSUME_NONNULL_BEGIN
    20 typedef NS_ENUM(NSInteger, GCKRequestAbortReason) {
    22   GCKRequestAbortReasonReplaced = 1,
    24   GCKRequestAbortReasonCancelled = 2,
    40 @property(nonatomic, weak, readwrite, GCK_NULLABLE) id<GCKRequestDelegate> 
delegate;
    45 @property(nonatomic, assign, readonly) GCKRequestID 
requestID;
    63 @property(nonatomic, assign, readonly) BOOL 
external;
   100 - (void)failWithError:(
GCKError *)error;
   112 - (void)abortWithReason:(GCKRequestAbortReason)reason;
   122 @protocol GCKRequestDelegate <NSObject>
   131 - (void)requestDidComplete:(
GCKRequest *)request;
   148 - (void)request:(
GCKRequest *)request didAbortWithReason:(GCKRequestAbortReason)abortReason;
   152 GCK_ASSUME_NONNULL_END
 A subclass of NSError for framework errors. 
Definition: GCKError.h:366
An object for tracking an asynchronous request. 
Definition: GCKRequest.h:35
BOOL external
A flag indicating whether this is an external request–that is, one created by the application rather...
Definition: GCKRequest.h:63
id< GCKRequestDelegate > delegate
The delegate for receiving notifications about the status of the request. 
Definition: GCKRequest.h:40
void cancel()
Cancels the request. 
GCKRequestID requestID
The unique ID assigned to this request. 
Definition: GCKRequest.h:45
GCKError * error
The error that caused the request to fail, if any, otherwise nil. 
Definition: GCKRequest.h:50
BOOL inProgress
A flag indicating whether the request is currently in progress. 
Definition: GCKRequest.h:55
GCKRequest * applicationRequest()
Constructs a GCKRequest object for use by the calling application. 
void complete()
Completes the request and notifies the delegate accordingly.