TrustedWebActivityDisplayMode.WindowControlsOverlay


public final class TrustedWebActivityDisplayMode.WindowControlsOverlay implements TrustedWebActivityDisplayMode


Window controls overlay mode: Experimental display mode where the entire window surface is be available for the app's web content. System controls (maximize, minimize, close, etc) will be displayed as overlays on top of the web contents. This is not the same as immersive mode because the web activity can be in a free-floating window with window controls overlay enabled. In immersive mode, the web activity will occupy the entire screen. {@see https://github.com/WICG/window-controls-overlay/blob/main/explainer.md} {@see https://wicg.github.io/window-controls-overlay/}

Summary

Public constructors

Public methods

@NonNull Bundle

Packs the object into a Bundle.

Inherited Constants

From androidx.browser.trusted.TrustedWebActivityDisplayMode
static final String
KEY_ID = "androidx.browser.trusted.displaymode.KEY_ID"

Bundle key for the integer identifying the mode.

Public constructors

WindowControlsOverlay

Added in 1.10.0-alpha01
public WindowControlsOverlay()

Public methods

toBundle

public @NonNull Bundle toBundle()

Packs the object into a Bundle.