WebViewLayout

WebViewLayout allows you to display a WebView with a progress bar injecting the CSS, Js, and Cookies provided.

Usage

WebViewLayout is included in the webview SDK which is included by platform module. If you need to include this module, add it to your build.gradle:

implementation ("com.poqstudio:content.webview:$VERSION_NAME")

To use it:

  1. Add it to your layout:
    <com.poqstudio.platform.view.webview.layout.ui.PoqWebViewLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent" />
  2. Send the WebSettings object through the setUp method:
    webViewLayout.setUp(WebSettings(...)))

WebViewLayout also exposes WebChromeClient and WebViewClient events; and its internal WebView:

val webView: WebView
val customWebChromeClient: CustomWebChromeClient
val customWebViewClient: CustomWebViewClient