GCKSession+Protected.h
1 // Copyright 2015 Google Inc.
2 
3 #import <GoogleCast/GCKSession.h>
4 
5 #import <GoogleCast/GCKDefines.h>
6 
7 #import <Foundation/Foundation.h>
8 
14 GCK_ASSUME_NONNULL_BEGIN
15 
21 typedef NS_ENUM(NSInteger, GCKSessionEndAction) {
23  GCKSessionEndActionLeave = 1,
25  GCKSessionEndActionDisconnect = 2,
27  GCKSessionEndActionStopCasting = 3
28 };
29 
36 
40 - (void)start;
41 
49 - (void)endWithAction:(GCKSessionEndAction)action;
50 
56 - (void)notifyDidStartWithSessionID:(NSString *)sessionID;
57 
63 - (void)notifyDidFailToStartWithError:(NSError *)error;
64 
72 - (void)notifyDidEndWithError:(NSError *GCK_NULLABLE_TYPE)error
73  willTryToResume:(BOOL)willTryToResume;
74 
82 - (void)notifyDidReceiveDeviceVolume:(float)volume muted:(BOOL)muted;
83 
90 - (void)notifyDidReceiveDeviceStatus:(NSString *GCK_NULLABLE_TYPE)statusText;
91 
97 - (void)notifyDidSuspendWithReason:(GCKConnectionSuspendReason)reason GCK_DEPRECATED("Do not call");
98 
104 - (void)notifyDidResume GCK_DEPRECATED("Do not call");
105 
106 @end
107 
108 GCK_ASSUME_NONNULL_END
Methods to be overridden and called by GCKSession subclasses only.
Definition: GCKSession+Protected.h:35