SandboxedUiAdapter.Session


public interface SandboxedUiAdapter.Session extends AutoCloseable


A single session with the provider of remote content.

Summary

Public methods

abstract void

Close this session, indicating that the remote provider of content should dispose of associated resources and that the SessionClient should not receive further callback events.

abstract @NonNull View

Return the View that presents content for this session.

abstract void

Notify the session that the host configuration has changed to configuration.

abstract void
notifyResized(int width, int height)

Notify the provider that the size of the host presentation area has changed to a size of width x height pixels.

abstract void
notifyZOrderChanged(boolean isZOrderOnTop)

Notify the provider that there's a change in the intended z order of the session UI and it is now set to isZOrderOnTop.

Public methods

close

Added in 1.0.0-alpha07
abstract void close()

Close this session, indicating that the remote provider of content should dispose of associated resources and that the SessionClient should not receive further callback events.

getView

Added in 1.0.0-alpha07
abstract @NonNull View getView()

Return the View that presents content for this session. The same view will be returned for the life of the session object. Accessing view after close may throw an IllegalStateException.

notifyConfigurationChanged

Added in 1.0.0-alpha07
abstract void notifyConfigurationChanged(@NonNull Configuration configuration)

Notify the session that the host configuration has changed to configuration.

notifyResized

Added in 1.0.0-alpha07
abstract void notifyResized(int width, int height)

Notify the provider that the size of the host presentation area has changed to a size of width x height pixels.

notifyZOrderChanged

Added in 1.0.0-alpha07
abstract void notifyZOrderChanged(boolean isZOrderOnTop)

Notify the provider that there's a change in the intended z order of the session UI and it is now set to isZOrderOnTop.