SandboxedUiAdapter
public interface SandboxedUiAdapter
AbstractSandboxedUiAdapter |
An abstract class that implements |
DelegatingSandboxedUiAdapter |
A |
An Adapter that provides content from a SandboxedSdk to be displayed as part of a host app's UI.
Summary
Nested types |
|---|
public interface SandboxedUiAdapter.Session extends AutoCloseableA single session with the provider of remote content. |
public interface SandboxedUiAdapter.SessionClientThe client of a single session that will receive callback events from an active session. |
Public methods |
|
|---|---|
abstract void |
openSession(Open a new session for displaying content with an initial size of |
Extension functions |
|
|---|---|
default final @NonNull Bundle |
SandboxedUiAdapterProxy.toCoreLibInfo(Provides a |
Public methods
openSession
abstract void openSession(
@NonNull Context context,
@NonNull SessionData sessionData,
int initialWidth,
int initialHeight,
boolean isZOrderOnTop,
@NonNull Executor clientExecutor,
@NonNull SandboxedUiAdapter.SessionClient client
)
Open a new session for displaying content with an initial size of initialWidthxinitialHeight pixels. client will receive all incoming communication from the provider of content. All incoming calls to client will be made through the provided clientExecutor. isZOrderOnTop tracks if the content surface will be placed on top of its window
Extension functions
SandboxedUiAdapterProxy.toCoreLibInfo
default final @NonNull Bundle SandboxedUiAdapterProxy.toCoreLibInfo(
@NonNull SandboxedUiAdapter receiver,
@NonNull Context context
)
Provides a Bundle containing a Binder which represents a SandboxedUiAdapter. The Bundle is shuttled to the host app in order for the SandboxedUiAdapter to be used to retrieve content.