Kwik Web View
fun KwikWebView(modifier: Modifier = Modifier, url: String, javaScriptBridge: Any? = null, javaScriptBridgeName: String = "KwikBridge", hideProgressAfterLoading: Boolean = true, pageLoaded: () -> Unit = {}, failedToOpenLink: () -> Unit = {}, webViewSettings: KwikWebViewSettings.() -> Unit = {})
A web view component that allows you to load a URL and interact with it. Supports JavaScript, file access, and custom settings such as cookies and user agent parameters.
Parameters
modifier
The modifier to be applied to the web view.
url
The URL to be loaded in the web view.
java Script Bridge
An optional JavaScript bridge object to be used for communication between the web view and the app.
java Script Bridge Name
The name of the JavaScript bridge object.
hide Progress After Loading
Whether to hide the progress bar after the page has loaded.
page Loaded
A callback function to be called when the page has finished loading.
failed To Open Link
A callback function to be called when a link fails to open.
web View Settings
A lambda function to configure the web view settings.