com.google.android.gms.cast.framework.SessionManagerListener<T extends com.google.android.gms.cast.framework.Session> |
![]() |
A listener interface for monitoring events of a particular type of Session
instance.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when a
session has ended. | |||||||||||
Called when a
session is ending. | |||||||||||
Called when a previous saved
session failed to resume. | |||||||||||
Called when
session has been successfully resumed. | |||||||||||
Called when a
session is attempting to resume. | |||||||||||
Called when a
session failed to start. | |||||||||||
Called when a
session has been successfully started. | |||||||||||
Called when a
session is attempting to start. | |||||||||||
Called when a
session has been suspended. |
Called when a session
has ended.
Parameters | |
---|---|
session |
T :
The Session . |
error |
int :
The error code, one of CastStatusCodes .
|
Called when a session
is ending.
Parameters | |
---|---|
session |
T :
The Session .
|
Called when a previous saved session
failed to resume.
Parameters | |
---|---|
session |
T :
The Session . |
error |
int :
The error code, one of CastStatusCodes .
|
Called when session
has been successfully resumed. If wasSuspended
is
true
, then session
is resumed from the previous suspension. Otherwise it is
resumed from the previous saved session.
Parameters | |
---|---|
session |
T :
The Session . |
wasSuspended |
boolean :
Is the session resumed from suspension.
|
Called when a session
is attempting to resume.
Parameters | |
---|---|
session |
T :
The Session . |
sessionId |
String :
ID of the started session.
|
Called when a session
failed to start.
Parameters | |
---|---|
session |
T :
The Session . |
error |
int :
The error code, one of CastStatusCodes .
|
Called when a session
has been successfully started.
Parameters | |
---|---|
session |
T :
The Session . |
sessionId |
String :
ID of the started session.
|
Called when a session
is attempting to start.
Parameters | |
---|---|
session |
T :
The Session .
|
Called when a session
has been suspended.
Parameters | |
---|---|
session |
T :
The Session . |
reason |
int :
The reason for suspension. Defined in
GoogleApiClient.ConnectionCallbacks.CAUSE_* .
|