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 byWebContent. -
retainWebContent: Composable that creates and retains aWebContentinstance across configuration changes and transient compositions, automatically closing it when retired. -
WebViewBridge: SpecializedWebContentViewthat exposesWebViewAPIs not yet available directly onWebContentwhen presenting viaWebSurface. -
WebChromeClientBridge: SpecializedWebChromeClientthat exposesWebChromeClientcallbacks not yet available directly onWebContentwhen presenting viaWebSurface.
Classes
WebChromeClientBridge |
Exposes |
WebViewBridge |
Exposes |
Composables
WebSurface |
Presents the web page hosted by |
retainWebContent |
Creates and retains a |