# androidx.web

*** ** * ** ***

Web is a collection of modern APIs that can be used with `android.webkit`, `androidx.webkit`, and `androidx.web.compose`.

This package provides components to manage `https://developer.android.com/reference/android/webkit/WebView.html` state independently of the view hierarchy, allowing `https://developer.android.com/reference/android/webkit/WebView.html` state to outlive configuration changes.

Key components include:

- `https://developer.android.com/reference/androidx/web/WebContent`: Persistent web engine session state that can safely outlive individual UI views or `https://developer.android.com/reference/android/app/Activity.html`.

- `https://developer.android.com/reference/androidx/web/WebContentView`: Specialized `https://developer.android.com/reference/android/webkit/WebView.html` designed to integrate with `https://developer.android.com/reference/androidx/web/WebContent`.

- `https://developer.android.com/reference/androidx/web/DetachedWebContentView`: Specialized `https://developer.android.com/reference/androidx/web/WebContentView` that `https://developer.android.com/reference/androidx/web/WebContent` attaches to when not attached to an `https://developer.android.com/reference/android/app/Activity.html`.

- `https://developer.android.com/reference/androidx/web/WebFeature`: Utility for checking the runtime availability of newer Web APIs.

## Classes

|---|---|
| `https://developer.android.com/reference/androidx/web/DetachedWebContentView` | A specialized `https://developer.android.com/reference/androidx/web/WebContentView` that represents a `https://developer.android.com/reference/androidx/web/WebContent` session which has been temporarily detached from the view hierarchy. |
| `https://developer.android.com/reference/androidx/web/WebContent` | `https://developer.android.com/reference/androidx/web/WebContent` can `https://developer.android.com/reference/androidx/web/WebContent#attach(android.content.Context,java.util.function.Function)` and `https://developer.android.com/reference/androidx/web/WebContentView`s to outlive `https://developer.android.com/reference/android/app/Activity.html` lifetimes. |
| `https://developer.android.com/reference/androidx/web/WebContent.Builder` | Builder for `https://developer.android.com/reference/androidx/web/WebContent`. |
| `https://developer.android.com/reference/androidx/web/WebContentView` | This is a `https://developer.android.com/reference/android/webkit/WebView.html` that is created via `https://developer.android.com/reference/androidx/web/WebContent`. |
| `https://developer.android.com/reference/androidx/web/WebFeature` | Utility class for checking which Web features are supported on the device. |