SharedUiAdapter.SessionClient


interface SharedUiAdapter.SessionClient


The client of a single session that will receive callback events from an active session.

Summary

Public functions

Unit

Called to report a terminal error in the session.

Unit

Called to report that the session was opened successfully, delivering the Session handle that should be used to communicate with the provider.

Public functions

onSessionError

Added in 1.0.0-alpha14
fun onSessionError(throwable: Throwable): Unit

Called to report a terminal error in the session. No further events will be reported to this SessionClient and any further or currently pending calls to the Session that may have been in flight may be ignored.

onSessionOpened

Added in 1.0.0-alpha14
fun onSessionOpened(session: SharedUiAdapter.Session): Unit

Called to report that the session was opened successfully, delivering the Session handle that should be used to communicate with the provider.