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:

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.