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


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:
    android:layout_height="match_parent" />
  2. Send the WebSettings object through the setUp method:

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

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