SandboxedUiAdapter.SessionClient


public interface SandboxedUiAdapter.SessionClient


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

Summary

Public methods

abstract void
onResizeRequested(int width, int height)

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

abstract void

Called to report a terminal error in the session.

abstract void

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 methods

onResizeRequested

Added in 1.0.0-alpha10
abstract void onResizeRequested(int width, int height)

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
abstract void onSessionError(@NonNull Throwable throwable)

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
abstract void onSessionOpened(@NonNull SandboxedUiAdapter.Session session)

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