> Documentation index: https://developer.android.com/reference/llms.txt

# androidx.web.compose

Jetpack Compose integration for `androidx.web` that displays and manages web content in Compose UIs.

This package provides composables and helpers to present `WebContent` in a Compose hierarchy and retain web session state across configuration changes.

Key components include:

- `WebSurface`: Composable that presents the web page hosted by `WebContent`.

- `retainWebContent`: Composable that creates and retains a `WebContent` instance across configuration changes and transient compositions, automatically closing it when retired.

- `WebViewBridge`: Specialized `WebContentView` that exposes `WebView` APIs not yet available directly on `WebContent` when presenting via `WebSurface`.

- `WebChromeClientBridge`: Specialized `WebChromeClient` that exposes `WebChromeClient` callbacks not yet available directly on `WebContent` when presenting via `WebSurface`.

## Classes

|---|---|
| `WebChromeClientBridge` | Exposes `WebChromeClient` callbacks not yet available directly on `WebContent` when presenting via `WebSurface`. |
| `WebViewBridge` | Exposes `android.webkit.WebView` APIs not yet available directly on `WebContent` when presenting via `WebSurface`. |

## Composables

|---|---|
| `WebSurface` | Presents the web page hosted by `WebContent`. |
| `retainWebContent` | Creates and retains a `WebContent` instance across configuration changes and transient compositions, automatically `closing` it when retired. |