# TrustedWebActivityDisplayMode.WindowControlsOverlayMode

Artifact: [androidx.browser:browser](https://developer.android.com/jetpack/androidx/releases/browser) [View Source](https://cs.android.com/search?q=file:androidx/browser/trusted/TrustedWebActivityDisplayMode.java+class:androidx.browser.trusted.TrustedWebActivityDisplayMode.WindowControlsOverlayMode) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/browser#1.10.0)

*** ** * ** ***


```
public final class TrustedWebActivityDisplayMode.WindowControlsOverlayMode implements TrustedWebActivityDisplayMode
```

<br />

*** ** * ** ***

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 |
|---|
| `https://developer.android.com/reference/androidx/browser/trusted/TrustedWebActivityDisplayMode.WindowControlsOverlayMode#WindowControlsOverlayMode()()` |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Bundle.html` | `https://developer.android.com/reference/androidx/browser/trusted/TrustedWebActivityDisplayMode.WindowControlsOverlayMode#toBundle()()` Packs the object into a `https://developer.android.com/reference/android/os/Bundle.html`. |

| ### Inherited Constants |
|---|
| From [androidx.browser.trusted.TrustedWebActivityDisplayMode](https://developer.android.com/reference/androidx/browser/trusted/TrustedWebActivityDisplayMode) |---|---| | `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/browser/trusted/TrustedWebActivityDisplayMode#KEY_ID() = "androidx.browser.trusted.displaymode.KEY_ID"` Bundle key for the integer identifying the mode. | |

| ### Inherited methods |
|---|
| From [androidx.browser.trusted.TrustedWebActivityDisplayMode](https://developer.android.com/reference/androidx/browser/trusted/TrustedWebActivityDisplayMode) |---|---| | `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/browser/trusted/TrustedWebActivityDisplayMode` | `https://developer.android.com/reference/androidx/browser/trusted/TrustedWebActivityDisplayMode#fromBundle(android.os.Bundle)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Bundle.html bundle)` Unpacks the object from a `https://developer.android.com/reference/android/os/Bundle.html`. | |

## Public constructors

### WindowControlsOverlayMode

Added in 1.10.0

```
public WindowControlsOverlayMode()
```

## Public methods

### toBundle

```
public @NonNull Bundle toBundle()
```

Packs the object into a `https://developer.android.com/reference/android/os/Bundle.html`.