Package-level declarations

Types

Link copied to clipboard
class RelaxedWebView(context: Context) : WebView

WebView allowing access to some protected fields.

Link copied to clipboard
sealed class WebContent
Link copied to clipboard
class WebViewState<T : WebView>(webContent: WebContent)

A state holder to hold the state for the WebView. In most cases this will be remembered using the rememberWebViewState(uri) function.

Functions

Link copied to clipboard
Link copied to clipboard

Best effort to delay the execution of a block until the Webview has received data up-to-date at the moment when the call occurs or newer.

Link copied to clipboard
fun <T : WebView> rememberWebViewState(url: String, additionalHttpHeaders: Map<String, String> = emptyMap()): WebViewState<T>

Creates a WebView state that is remembered across Compositions.

Link copied to clipboard
fun <T : WebView> rememberWebViewStateWithHTMLData(data: String, baseUrl: String? = null, encoding: String = "utf-8", mimeType: String? = null, historyUrl: String? = null): WebViewState<T>

Creates a WebView state that is remembered across Compositions.

Link copied to clipboard
fun WebView(state: WebViewState<WebView>, modifier: Modifier = Modifier, onCreated: (WebView) -> Unit = {}, onDispose: (WebView) -> Unit = {}, client: WebViewClient = remember { WebViewClient() }, chromeClient: WebChromeClient = remember { WebChromeClient() })
fun <T : WebView> WebView(state: WebViewState<T>, factory: (Context) -> T, modifier: Modifier = Modifier, onCreated: (T) -> Unit = {}, onDispose: (T) -> Unit = {}, client: WebViewClient = remember { WebViewClient() }, chromeClient: WebChromeClient = remember { WebChromeClient() })
fun <T : WebView> WebView(state: WebViewState<T>, factory: (Context) -> T, layoutParams: FrameLayout.LayoutParams, modifier: Modifier = Modifier, onCreated: (T) -> Unit = {}, onDispose: (T) -> Unit = {}, client: WebViewClient = remember { WebViewClient() }, chromeClient: WebChromeClient = remember { WebChromeClient() })

A wrapper around the Android View WebView to provide a basic WebView composable.