| java.lang.Object | |
| ↳ | com.google.android.gms.cast.framework.SessionManager |
A class that manages Session instances. The application can attach a
SessionManagerListener to be notified of session events.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a
SessionManagerListener to monitor events from any type of Session
instance. | |||||||||||
Adds a
SessionManagerListener to monitor events from a Session instance whose
class is sessionClass. | |||||||||||
Ends the current session.
| |||||||||||
Returns the current session if it is an instance of
CastSession, otherwise returns
null. | |||||||||||
Returns the currently active session.
| |||||||||||
Removes the
SessionManagerListener. | |||||||||||
Removes the
SessionManagerListener. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Adds a SessionManagerListener to monitor events from any type of Session
instance.
| NullPointerException | If listener is null.
|
|---|
Adds a SessionManagerListener to monitor events from a Session instance whose
class is sessionClass.
| NullPointerException | If listener or sessionClass are null.
|
|---|
Ends the current session.
| stopCasting | Should the receiver application be stopped when ending the current Session. |
|---|
Returns the current session if it is an instance of CastSession, otherwise returns
null.
Returns the currently active session. Returns null if no session is active.
Removes the SessionManagerListener.
| listener | The SessionManagerListener to be removed.
|
|---|
Removes the SessionManagerListener.
| listener | The SessionManagerListener to be removed. |
|---|
| NullPointerException | If sessionClass is null.
|
|---|