Web Client
A web client that solves many problems of WebViewClient and provides a nice API to use. This client automatically sets JS as enabled. You can override this behavior by calling WebSettings.setJavaScriptEnabled. Only domains in allowedHosts will be opened in the webview, others will trigger WebClientListener.onForeignUrlEncountered. Don't forget to attach the client in onViewCreated and detach it in onDestroyView.
Properties
Functions
Clear all data associated with web views on device. Clears cookies and localstorage as well if forAllWebViews is true
Clear the navigation history
Call this in androidx.appcompat.app.AppCompatActivity.onSaveInstanceState state or androidx.fragment.app.Fragment.onViewStateRestored, if you do not save state, webView will not save it for you!