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:
- Add it to your layout:
<com.poqstudio.platform.view.webview.layout.ui.PoqWebViewLayoutandroid:layout_width="match_parent"android:layout_height="match_parent" />
- Send the
WebSettings
object through the setUp method:webViewLayout.setUp(WebSettings(...)))
WebViewLayout also exposes WebChromeClient and WebViewClient events; and its internal WebView:
val webView: WebViewval customWebChromeClient: CustomWebChromeClientval customWebViewClient: CustomWebViewClient