OriginatingSessionStateCallback
@RequiresApi(value = 26) interface OriginatingSessionStateCallback extends SessionStateCallback
Clients of Sessions should implement OriginatingSessionStateCallback to receive notifications of Session state changes when transferring a Session.
Provide your implementation in Sessions.transferSession.
Summary
| Public methods | |
|---|---|
| abstract void | onConnected(@NonNull SessionId sessionId)Notifies the application that the  | 
| abstract void | onSessionTransferred(@NonNull SessionId sessionId)Called when a Session has been successfully transferred to another device (and no longer running on this device). | 
| abstract void | onTransferFailure(Called when transfer cannot complete. | 
Public methods
onConnected
abstract void onConnected(@NonNull SessionId sessionId)
Notifies the application that the OriginatingSession associated with sessionId is ready to begin communication with the receiving side.
onSessionTransferred
abstract void onSessionTransferred(@NonNull SessionId sessionId)
Called when a Session has been successfully transferred to another device (and no longer running on this device).
onTransferFailure
abstract void onTransferFailure(
@NonNull SessionId sessionId,
@NonNull SessionException exception
)
Called when transfer cannot complete. Failure reason described by exception.
