public abstract class SessionTransferCallback extends Object
Callbacks to monitor the transfer of the Cast session to another endpoint.
Nested Class Summary
| @interface | SessionTransferCallback.TransferFailedReason | The failure reason of transferring to the new endpoint. | |
| @interface | SessionTransferCallback.TransferType | The transfer type of switching endpoints. | |
Constant Summary
| int | TRANSFER_FAILED_REASON_STORE_SESSION_STATE | |
| int | TRANSFER_FAILED_REASON_TRANSFER_TIMEOUT | |
| int | TRANSFER_TYPE_FROM_REMOTE_TO_LOCAL | |
| int | TRANSFER_TYPE_UNKNOWN |
Public Constructor Summary
Public Method Summary
| void |
onTransferFailed(int transferType, int reason)
Called when transferring the Cast session to a different endpoint has failed.
|
| void |
onTransferred(int transferType, SessionState sessionState)
Called when the Cast session is transferred to a different endpoint.
|
| void |
onTransferring(int transferType)
Called when the Cast session is transferring to a different endpoint.
|
Inherited Method Summary
Constants
public static final int TRANSFER_FAILED_REASON_STORE_SESSION_STATE
Constant Value: 100
public static final int TRANSFER_FAILED_REASON_TRANSFER_TIMEOUT
Constant Value: 101
public static final int TRANSFER_TYPE_FROM_REMOTE_TO_LOCAL
Constant Value: 1
public static final int TRANSFER_TYPE_UNKNOWN
Constant Value: 0
Public Constructors
public SessionTransferCallback ()
Public Methods
public void onTransferFailed (int transferType, int reason)
Called when transferring the Cast session to a different endpoint has failed.
Parameters
| transferType | the type of endpoint transfer |
|---|---|
| reason | the reason of the failed transfer |
public void onTransferred (int transferType, SessionState sessionState)
Called when the Cast session is transferred to a different endpoint.
Parameters
| transferType | the type of endpoint transfer |
|---|---|
| sessionState | the SessionState
for resuming the playback |
public void onTransferring (int transferType)
Called when the Cast session is transferring to a different endpoint.
Parameters
| transferType | the type of endpoint transfer |
|---|