A class that manages a Cast session with a receiver device.
More...
#import <GCKCastSession.h>
A class that manages a Cast session with a receiver device.
Sessions are created and managed automatically by the GCKSessionManager. The application should not directly call the session lifecycle methods such as start (GCKSession(Protected)) or endWithAction: (GCKSession(Protected)).
- Since
- 3.0
Registers a channel with the session.
If the session is connected and the receiver application supports the channel's namespace, the channel will be automatically connected. If the session is not connected, the channel will remain in a disconnected state until the session is started.
- Parameters
-
channel | The channel to register. |
- Returns
YES
if the channel was registered successfully, NO
otherwise.
- (void) addDeviceStatusListener: |
|
(id< GCKCastDeviceStatusListener >) |
listener |
|
Adds a GCKCastDeviceStatusListener to this object's list of listeners.
- Parameters
-
listener | The listener to add. |
- (instancetype) initWithDevice: |
|
(GCKDevice *) |
device |
sessionID: |
|
(NSString *GCK_NULLABLE_TYPE) |
sessionID |
sessionOptions: |
|
(GCKSessionOptions *GCK_NULLABLE_TYPE) |
sessionOptions |
castOptions: |
|
(GCKCastOptions *) |
castOptions |
|
|
| |
Constructs a new Cast session with the given Cast options.
- Parameters
-
device | The receiver device. |
sessionID | The session ID, if resuming; otherwise nil . |
sessionOptions | The session options, if any; otherwise nil . |
castOptions | The Cast options. |
- Since
- 4.0
Removes a previously registered channel from the session.
- Parameters
-
channel | The channel to unregister. |
- Returns
YES
if the channel was unregistered successfully, NO
otherwise.
- (void) removeDeviceStatusListener: |
|
(id< GCKCastDeviceStatusListener >) |
listener |
|
Removes a GCKCastDeviceStatusListener from this object's list of listeners.
- Parameters
-
listener | The listener to remove. |
Request multizone status from a multizone group.
This is an asynchronous operation. When the multizone status is received, the GCKCastDeviceStatusListener::castSession:didReceiveMultizoneStatus: delegate method will be messaged.
- Returns
- A GCKRequest object for tracking the request.
Sets the individual device's muted state in a multizone group.
This is an asynchronous operation.
- Parameters
-
muted | The new muted state. |
device | The multizone device. |
- Returns
- A GCKRequest object for tracking the request.
Sets the individual device's volume in a multizone group.
This is an asynchronous operation.
- Parameters
-
volume | The new volume, in the range [0.0, 1.0]. |
device | The multizone device. |
- Returns
- A GCKRequest object for tracking the request.
- (GCKActiveInputStatus) activeInputStatus |
|
readnonatomicassign |
The device's current "active input" status.
The metadata for the receiver application that is currently running on the receiver device, if any; otherwise nil
.
- (GCKStandbyStatus) standbyStatus |
|
readnonatomicassign |
The device's current "standby" status.
The documentation for this class was generated from the following file: