OriginatingSessionStateCallback

@RequiresApi(value = 26) interface OriginatingSessionStateCallback : 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 functions

Unit
onConnected(sessionId: SessionId)

Notifies the application that the OriginatingSession associated with sessionId is ready to begin communication with the receiving side.

Unit

Called when a Session has been successfully transferred to another device (and no longer running on this device).

Unit
onTransferFailure(sessionId: SessionId, exception: SessionException)

Called when transfer cannot complete.

Public functions

onConnected

fun onConnected(sessionId: SessionId): Unit

Notifies the application that the OriginatingSession associated with sessionId is ready to begin communication with the receiving side.

onSessionTransferred

fun onSessionTransferred(sessionId: SessionId): Unit

Called when a Session has been successfully transferred to another device (and no longer running on this device).

onTransferFailure

fun onTransferFailure(sessionId: SessionId, exception: SessionException): Unit

Called when transfer cannot complete. Failure reason described by exception.