3 #import <GoogleCast/GCKCommon.h> 4 #import <GoogleCast/GCKDefines.h> 5 #import <GoogleCast/GCKSessionOptions.h> 7 #import <Foundation/Foundation.h> 13 @protocol GCKSessionManagerListener;
15 GCK_ASSUME_NONNULL_BEGIN
17 GCK_EXTERN NSString *
const kGCKKeyConnectionState;
69 - (BOOL)startSessionWithDevice:(
GCKDevice *)device;
81 - (BOOL)startSessionWithDevice:(
GCKDevice *)device
82 sessionOptions:(GCKSessionOptions * GCK_NULLABLE_TYPE)options;
98 sessionOptions:(GCKSessionOptions * GCK_NULLABLE_TYPE)sessionOptions;
107 - (BOOL)suspendSessionWithReason:(GCKConnectionSuspendReason)reason;
125 - (BOOL)endSessionAndStopCasting:(BOOL)stopCasting;
153 - (void)setDefaultSessionOptions:(GCKSessionOptions * GCK_NULLABLE_TYPE)sessionOptions
154 forDeviceCategory:(NSString *)category;
163 - (GCKSessionOptions * GCK_NULLABLE_TYPE)
164 defaultSessionOptionsForDeviceCategory:(NSString *)category;
171 - (void)addListener:(
id<GCKSessionManagerListener>)listener;
178 - (void)removeListener:(
id<GCKSessionManagerListener>)listener;
199 @protocol GCKSessionManagerListener <NSObject>
254 withError:(NSError *GCK_NULLABLE_TYPE)error;
274 withError:(NSError *GCK_NULLABLE_TYPE)error;
285 withError:(NSError *)error;
296 withError:(NSError *)error;
307 withReason:(GCKConnectionSuspendReason)reason;
318 withReason:(GCKConnectionSuspendReason)reason;
378 didReceiveDeviceVolume:(
float)volume
390 didReceiveDeviceVolume:(
float)volume
402 didReceiveDeviceStatus:(NSString *GCK_NULLABLE_TYPE)statusText;
413 didReceiveDeviceStatus:(NSString *GCK_NULLABLE_TYPE)statusText;
424 didUpdateDefaultSessionOptionsForDeviceCategory:(NSString *)category;
428 GCK_ASSUME_NONNULL_END
GCKConnectionState connectionState
The current session connection state.
Definition: GCKSessionManager.h:54
GCKSession * currentSession
The current session, if any.
Definition: GCKSessionManager.h:48
An object representing a receiver device.
Definition: GCKDevice.h:82
An abstract base class representing a session with a receiver device.
Definition: GCKSession.h:30
BOOL hasConnectedSession()
Tests if a session is currently being managed by this session manager, and it is currently connected...
BOOL endSession()
Ends the current session.
A class that manages a Cast session with a receiver device.
Definition: GCKCastSession.h:28
An object representing options that can be passed to a Cast-enabled application via a deep-link URL...
Definition: GCKOpenURLOptions.h:24
instancetype NS_UNAVAILABLE()
Default initializer is not available.
GCKCastSession * currentCastSession
The current Cast session, if any.
Definition: GCKSessionManager.h:51
BOOL hasConnectedCastSession()
Tests if a Cast session is currently being managed by this session manager, and it is currently conne...
A class that manages sessions.
Definition: GCKSessionManager.h:45