WebView
A wrapper around the Android View WebView to provide a basic WebView composable.
The WebView attempts to set the layoutParams based on the Compose modifier passed in. If it is incorrectly sizing, use the layoutParams composable function instead.
Parameters
The webview state holder where the Uri to load is defined.
A compose modifier
Called when the WebView is first created, this can be used to set additional settings on the WebView. WebChromeClient and WebViewClient should not be set here as they will be subsequently overwritten after this lambda is called.
Called when the WebView is destroyed. Provides a bundle which can be saved if you need to save and restore state in this WebView.
Provides access to WebViewClient via subclassing
Provides access to WebChromeClient via subclassing
A wrapper around the Android View WebView to provide a basic WebView composable.
The WebView attempts to set the layoutParams based on the Compose modifier passed in. If it is incorrectly sizing, use the layoutParams composable function instead.
Parameters
The webview state holder where the Uri to load is defined.
A compose modifier
Called when the WebView is first created, this can be used to set additional settings on the WebView. WebChromeClient and WebViewClient should not be set here as they will be subsequently overwritten after this lambda is called.
Called when the WebView is destroyed. Provides a bundle which can be saved if you need to save and restore state in this WebView.
Provides access to WebViewClient via subclassing
Provides access to WebChromeClient via subclassing
A WebView factory for using a custom subclass of WebView
A wrapper around the Android View WebView to provide a basic WebView composable.
The WebView attempts to set the layoutParams based on the Compose modifier passed in. If it is incorrectly sizing, use the layoutParams composable function instead.
Parameters
The webview state holder where the Uri to load is defined.
A FrameLayout.LayoutParams object to custom size the underlying WebView.
A compose modifier
Called when the WebView is first created, this can be used to set additional settings on the WebView. WebChromeClient and WebViewClient should not be set here as they will be subsequently overwritten after this lambda is called.
Called when the WebView is destroyed. Provides a bundle which can be saved if you need to save and restore state in this WebView.
Provides access to WebViewClient via subclassing
Provides access to WebChromeClient via subclassing
A WebView factory for using a custom subclass of WebView