SandboxedUiAdapter.SessionClient


interface SandboxedUiAdapter.SessionClient


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

Summary

Public functions

Unit
onResizeRequested(width: Int, height: Int)

Called when the provider of content would like the UI to be presented at width and height.

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 notify the session of UI events.

Public functions

onResizeRequested

Added in 1.0.0-alpha10
fun onResizeRequested(width: Int, height: Int): Unit

Called when the provider of content would like the UI to be presented at width and height. The library tries to get as close a fit as possible whilst staying within the container's constraints.

onSessionError

Added in 1.0.0-alpha10
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-alpha10
fun onSessionOpened(session: SandboxedUiAdapter.Session): Unit

Called to report that the session was opened successfully, delivering the Session handle that should be used to notify the session of UI events.