SandboxedUiAdapter


interface SandboxedUiAdapter

Known direct subclasses
AbstractSandboxedUiAdapter

This class is deprecated. This library is no longer supported.

DelegatingSandboxedUiAdapter

This class is deprecated. This library is no longer supported.


An Adapter that provides content from a SandboxedSdk to be displayed as part of a host app's UI.

Summary

Nested types

This interface is deprecated. This library is no longer supported.

This interface is deprecated. This library is no longer supported.

Public functions

Unit
openSession(
    context: Context,
    sessionData: SessionData,
    initialWidth: Int,
    initialHeight: Int,
    isZOrderOnTop: Boolean,
    clientExecutor: Executor,
    client: SandboxedUiAdapter.SessionClient
)

Open a new session for displaying content with an initial size of initialWidthxinitialHeight pixels.

Extension functions

Bundle

This function is deprecated. This library is no longer supported.

Public functions

openSession

Added in 1.0.0-alpha17
Deprecated in 1.0.0-alpha17
fun openSession(
    context: Context,
    sessionData: SessionData,
    initialWidth: Int,
    initialHeight: Int,
    isZOrderOnTop: Boolean,
    clientExecutor: Executor,
    client: SandboxedUiAdapter.SessionClient
): Unit

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

fun SandboxedUiAdapter.toCoreLibInfo(context: Context): Bundle

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.