3 #import <GoogleCast/GCKSessionTraits.h> 5 #import <GoogleCast/GCKCommon.h> 6 #import <GoogleCast/GCKDefines.h> 7 #import <GoogleCast/GCKDevice.h> 8 #import <GoogleCast/GCKMediaMetadata.h> 9 #import <GoogleCast/GCKRemoteMediaClient.h> 10 #import <GoogleCast/GCKSessionOptions.h> 12 #import <Foundation/Foundation.h> 14 GCK_ASSUME_NONNULL_BEGIN
36 @property(nonatomic, copy, readonly, GCK_NULLABLE) NSString *
sessionID;
43 @property(nonatomic, strong, readonly, GCK_NULLABLE) GCKSessionOptions *
sessionOptions;
54 @property(nonatomic, assign, readonly) BOOL suspended
GCK_DEPRECATED(
55 "GCKSession no longer supports being in a suspended state. If needed, move this functionality " 60 @property(nonatomic, copy, readonly, GCK_NULLABLE) NSString *
deviceStatusText;
93 - (instancetype)initWithDevice:(
GCKDevice *)device
95 sessionID:(NSString *GCK_NULLABLE_TYPE)sessionID;
108 - (instancetype)initWithDevice:(
GCKDevice *)device
110 sessionID:(NSString *GCK_NULLABLE_TYPE)sessionID
111 sessionOptions:(GCKSessionOptions *GCK_NULLABLE_TYPE)sessionOptions;
121 - (
GCKRequest *)setDeviceVolume:(
float)volume;
135 GCK_ASSUME_NONNULL_END
An object representing a receiver device.
Definition: GCKDevice.h:82
GCKRemoteMediaClient * remoteMediaClient
The GCKRemoteMediaClient object that can be used to control media playback in this session...
Definition: GCKSession.h:77
An object for tracking an asynchronous request.
Definition: GCKRequest.h:35
An abstract base class representing a session with a receiver device.
Definition: GCKSession.h:30
float currentDeviceVolume
The current device volume, in the range [0.0, 1.0].
Definition: GCKSession.h:66
GCKSessionOptions * sessionOptions
The session options, if any.
Definition: GCKSession.h:43
GCKMediaMetadata * mediaMetadata
The current media metadata, if any.
Definition: GCKSession.h:83
GCKConnectionState connectionState
The current session connection state.
Definition: GCKSession.h:46
NSString * deviceStatusText
The current device status text.
Definition: GCKSession.h:57
GCKSessionTraits * traits
The session traits.
Definition: GCKSession.h:63
NSString * sessionID
The current session ID, if any.
Definition: GCKSession.h:36
BOOL currentDeviceMuted
The current device mute state.
Definition: GCKSession.h:69
"Do not call" GCK_DEPRECATED()
Deprecated, do not use - implemented as a no-op.
GCKDevice * device
The device that this session is associated with.
Definition: GCKSession.h:33
An object describing the traits and capabilities of a session.
Definition: GCKSessionTraits.h:15