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 WebView state independently of the view hierarchy, allowing WebView state to outlive configuration changes.
Key components include:
-
WebContent: Persistent web engine session state that can safely outlive individual UI views orActivities. -
WebContentView: SpecializedWebViewdesigned to integrate withWebContent. -
DetachedWebContentView: SpecializedWebContentViewthatWebContentattaches to when not attached to anActivity. -
WebFeature: Utility for checking the runtime availability of newer Web APIs.
Classes
DetachedWebContentView |
A specialized |
WebContent |
|
WebContent.Builder |
Builder for |
WebContentView |
This is a |
Objects
WebFeature |
Utility class for checking which Web features are supported on the device. |
Top-level functions summary
WebContent |
@RequiresFeature(name = "WEB_CONTENT", enforcement = "androidx.web.WebFeature#isFeatureSupported")Creates and configures a |
Top-level functions
WebContent
@RequiresFeature(name = "WEB_CONTENT", enforcement = "androidx.web.WebFeature#isFeatureSupported")
fun WebContent(block: WebContent.Builder.() -> Unit = {}): WebContent
Creates and configures a WebContent instance.