Overview
The GCKSessionManager listener protocol.
The protocol's methods are all optional. All of the notification methods come in two varieties: one that is invoked for any session type, and one that is invoked specifically for Cast sessions.
Listeners are invoked in the order that they were registered. GCKSessionManagerListener instances which are registered by components of the framework itself (such as GCKUIMediaController), will always be invoked after those that are registered by the application for the callbacks sessionManager:willStartSession: (GCKSessionManagerListener-p), sessionManager:willStartCastSession: (GCKSessionManagerListener-p), sessionManager:willResumeSession: (GCKSessionManagerListener-p), and sessionManager:willResumeCastSession: (GCKSessionManagerListener-p); and before those that are registered by the application for all of the remaining callbacks.
- Since
- 3.0
Inherits <NSObjectNSObject>.
Instance Method Summary | |
(void) | - sessionManager:willStartSession: |
Called when a session is about to be started. More... | |
(void) | - sessionManager:didStartSession: |
Called when a session has been successfully started. More... | |
(void) | - sessionManager:willStartCastSession: |
Called when a Cast session is about to be started. More... | |
(void) | - sessionManager:didStartCastSession: |
Called when a Cast session has been successfully started. More... | |
(void) | - sessionManager:willEndSession: |
Called when a session is about to be ended, either by request or due to an error. More... | |
(void) | - sessionManager:didEndSession:withError: |
Called when a session has ended, either by request or due to an error. More... | |
(void) | - sessionManager:willEndCastSession: |
Called when a Cast session is about to be ended, either by request or due to an error. More... | |
(void) | - sessionManager:didEndCastSession:withError: |
Called when a Cast session has ended, either by request or due to an error. More... | |
(void) | - sessionManager:didFailToStartSession:withError: |
Called when a session has failed to start. More... | |
(void) | - sessionManager:didFailToStartCastSession:withError: |
Called when a Cast session has failed to start. More... | |
(void) | - sessionManager:didSuspendSession:withReason: |
Called when a session has been suspended. More... | |
(void) | - sessionManager:didSuspendCastSession:withReason: |
Called when a Cast session has been suspended. More... | |
(void) | - sessionManager:willResumeSession: |
Called when a session is about to be resumed. More... | |
(void) | - sessionManager:didResumeSession: |
Called when a session has been successfully resumed. More... | |
(void) | - sessionManager:willResumeCastSession: |
Called when a Cast session is about to be resumed. More... | |
(void) | - sessionManager:didResumeCastSession: |
Called when a Cast session has been successfully resumed. More... | |
(void) | - sessionManager:session:didUpdateDevice: |
Called when the device associated with this session has changed in some way (for example, the friendly name has changed). More... | |
(void) | - sessionManager:session:didReceiveDeviceVolume:muted: |
Called when updated device volume and mute state for a session have been received. More... | |
(void) | - sessionManager:castSession:didReceiveDeviceVolume:muted: |
Called when updated device volume and mute state for a Cast session have been received. More... | |
(void) | - sessionManager:session:didReceiveDeviceStatus: |
Called when updated device status for a session has been received. More... | |
(void) | - sessionManager:castSession:didReceiveDeviceStatus: |
Called when updated device status for a Cast session has been received. More... | |
(void) | - sessionManager:didUpdateDefaultSessionOptionsForDeviceCategory: |
Called when the default session options have been changed for a given device category. More... | |
Method Detail
|
optional |
Called when a session is about to be started.
- Parameters
-
sessionManager The session manager. session The session.
|
optional |
Called when a session has been successfully started.
- Parameters
-
sessionManager The session manager. session The session.
|
optional |
Called when a Cast session is about to be started.
- Parameters
-
sessionManager The session manager. session The session.
|
optional |
Called when a Cast session has been successfully started.
- Parameters
-
sessionManager The session manager. session The Cast session.
|
optional |
Called when a session is about to be ended, either by request or due to an error.
- Parameters
-
sessionManager The session manager. session The session.
|
optional |
Called when a session has ended, either by request or due to an error.
- Parameters
-
sessionManager The session manager. session The session. error The error, if any; otherwise nil.
|
optional |
Called when a Cast session is about to be ended, either by request or due to an error.
- Parameters
-
sessionManager The session manager. session The session.
|
optional |
Called when a Cast session has ended, either by request or due to an error.
- Parameters
-
sessionManager The session manager. session The Cast session. error The error, if any; otherwise nil.
|
optional |
Called when a session has failed to start.
- Parameters
-
sessionManager The session manager. session The session. error The error.
|
optional |
Called when a Cast session has failed to start.
- Parameters
-
sessionManager The session manager. session The Cast session. error The error.
|
optional |
Called when a session has been suspended.
- Parameters
-
sessionManager The session manager. session The session. reason The reason for the suspension.
|
optional |
Called when a Cast session has been suspended.
- Parameters
-
sessionManager The session manager. session The Cast session. reason The reason for the suspension.
|
optional |
Called when a session is about to be resumed.
- Parameters
-
sessionManager The session manager. session The session.
|
optional |
Called when a session has been successfully resumed.
- Parameters
-
sessionManager The session manager. session The session.
|
optional |
Called when a Cast session is about to be resumed.
- Parameters
-
sessionManager The session manager. session The session.
|
optional |
Called when a Cast session has been successfully resumed.
- Parameters
-
sessionManager The session manager. session The Cast session.
|
optional |
Called when the device associated with this session has changed in some way (for example, the friendly name has changed).
- Parameters
-
sessionManager The session manager. session The Cast session. device The updated device object.
- Since
- 3.2
|
optional |
Called when updated device volume and mute state for a session have been received.
- Parameters
-
sessionManager The session manager. session The session. volume The current volume, in the range [0.0, 1.0]. muted The current mute state.
|
optional |
Called when updated device volume and mute state for a Cast session have been received.
- Parameters
-
sessionManager The session manager. session The Cast session. volume The current volume, in the range [0.0, 1.0]. muted The current mute state.
|
optional |
Called when updated device status for a session has been received.
- Parameters
-
sessionManager The session manager. session The session. statusText The new device status text.
|
optional |
Called when updated device status for a Cast session has been received.
- Parameters
-
sessionManager The session manager. session The Cast session. statusText The new device status text.
|
optional |
Called when the default session options have been changed for a given device category.
- Parameters
-
sessionManager The session manager. category The device category.
- Since
- 4.0