-
public class AccompanistWebViewClient extends WebViewClient
AccompanistWebViewClient
A parent class implementation of WebViewClient that can be subclassed to add custom behaviour.
As Accompanist Web needs to set its own web client to function, it provides this intermediary class that can be overriden if further custom behaviour is required.
-
-
Field Summary
Fields Modifier and Type Field Description private WebViewStatestateprivate WebViewNavigatornavigator
-
Constructor Summary
Constructors Constructor Description AccompanistWebViewClient()
-
Method Summary
Modifier and Type Method Description WebViewStategetState()UnitsetState(WebViewState state)WebViewNavigatorgetNavigator()UnitsetNavigator(WebViewNavigator navigator)UnitonPageStarted(WebView view, String url, Bitmap favicon)UnitonPageFinished(WebView view, String url)UnitdoUpdateVisitedHistory(WebView view, String url, Boolean isReload)UnitonReceivedError(WebView view, WebResourceRequest request, WebResourceError error)-
Methods inherited from class com.kevinnzou.web.AccompanistWebViewClient
onFormResubmission, onLoadResource, onPageCommitVisible, onReceivedClientCertRequest, onReceivedError, onReceivedHttpAuthRequest, onReceivedHttpError, onReceivedLoginRequest, onReceivedSslError, onRenderProcessGone, onSafeBrowsingHit, onScaleChanged, onTooManyRedirects, onUnhandledKeyEvent, shouldInterceptRequest, shouldInterceptRequest, shouldOverrideKeyEvent, shouldOverrideUrlLoading, shouldOverrideUrlLoading -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getState
WebViewState getState()
-
setState
Unit setState(WebViewState state)
-
getNavigator
WebViewNavigator getNavigator()
-
setNavigator
Unit setNavigator(WebViewNavigator navigator)
-
onPageStarted
Unit onPageStarted(WebView view, String url, Bitmap favicon)
-
onPageFinished
Unit onPageFinished(WebView view, String url)
-
doUpdateVisitedHistory
Unit doUpdateVisitedHistory(WebView view, String url, Boolean isReload)
-
onReceivedError
Unit onReceivedError(WebView view, WebResourceRequest request, WebResourceError error)
-
-
-
-