Package com.pubmatic.sdk.webrendering.ui
Class POBHTMLViewClient
-
- All Implemented Interfaces:
public class POBHTMLViewClient extends WebViewClient
A class listening the WebViewClient callbacks and forwarding to HTMLViewClientListener implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfacePOBHTMLViewClient.HTMLViewClientListenerAn interface responsible for providing the callbacks during the rendering of HTML content
public interfacePOBHTMLViewClient.OnRenderProcessGoneListenerInterface definition delegate WebView Render Process terminated.
-
Field Summary
Fields Modifier and Type Field Description public final static intERROR_AUTHENTICATIONpublic final static intERROR_BAD_URLpublic final static intERROR_CONNECTpublic final static intERROR_FAILED_SSL_HANDSHAKEpublic final static intERROR_FILEpublic final static intERROR_FILE_NOT_FOUNDpublic final static intERROR_HOST_LOOKUPpublic final static intERROR_IOpublic final static intERROR_PROXY_AUTHENTICATIONpublic final static intERROR_REDIRECT_LOOPpublic final static intERROR_TIMEOUTpublic final static intERROR_TOO_MANY_REQUESTSpublic final static intERROR_UNKNOWNpublic final static intERROR_UNSAFE_RESOURCEpublic final static intERROR_UNSUPPORTED_AUTH_SCHEMEpublic final static intERROR_UNSUPPORTED_SCHEMEpublic final static intSAFE_BROWSING_THREAT_BILLINGpublic final static intSAFE_BROWSING_THREAT_MALWAREpublic final static intSAFE_BROWSING_THREAT_PHISHINGpublic final static intSAFE_BROWSING_THREAT_UNKNOWNpublic final static intSAFE_BROWSING_THREAT_UNWANTED_SOFTWARE
-
Constructor Summary
Constructors Constructor Description POBHTMLViewClient(POBHTMLViewClient.OnRenderProcessGoneListener renderProcessGoneListener)Constructs hte HTMLView Client by initialising OnRenderProcessGoneListener reference
-
Method Summary
Modifier and Type Method Description voidsetHTMLClientListener(@Nullable() POBHTMLViewClient.HTMLViewClientListener listener)Sets the listener to get the callbacks voiddisableMultipleOnPageFinished(boolean disableMultipleOnPageFinished)Disables on page finished callback if ready dispatched. booleanshouldOverrideUrlLoading(WebView view, String url)booleanshouldOverrideUrlLoading(WebView view, WebResourceRequest request)voidonPageFinished(WebView view, String url)voidonReceivedError(WebView view, int errorCode, String description, String failingUrl)voidonReceivedError(WebView view, WebResourceRequest request, WebResourceError error)booleanonRenderProcessGone(WebView view, RenderProcessGoneDetail detail)Reference details can be found at ... -
Methods inherited from class android.webkit.WebViewClient
doUpdateVisitedHistory, onFormResubmission, onLoadResource, onPageCommitVisible, onPageStarted, onReceivedClientCertRequest, onReceivedHttpAuthRequest, onReceivedHttpError, onReceivedLoginRequest, onReceivedSslError, onSafeBrowsingHit, onScaleChanged, onTooManyRedirects, onUnhandledKeyEvent, shouldInterceptRequest, shouldOverrideKeyEvent -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
POBHTMLViewClient
POBHTMLViewClient(POBHTMLViewClient.OnRenderProcessGoneListener renderProcessGoneListener)
Constructs hte HTMLView Client by initialising OnRenderProcessGoneListener reference- Parameters:
renderProcessGoneListener- reference of OnRenderProcessGoneListener
-
-
Method Detail
-
setHTMLClientListener
void setHTMLClientListener(@Nullable() POBHTMLViewClient.HTMLViewClientListener listener)
Sets the listener to get the callbacks
- Parameters:
listener- listener
-
disableMultipleOnPageFinished
void disableMultipleOnPageFinished(boolean disableMultipleOnPageFinished)
Disables on page finished callback if ready dispatched. By default it is false, to disable set it true.
- Parameters:
disableMultipleOnPageFinished- the boolean flag.
-
shouldOverrideUrlLoading
boolean shouldOverrideUrlLoading(WebView view, String url)
-
shouldOverrideUrlLoading
boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request)
-
onPageFinished
void onPageFinished(WebView view, String url)
-
onReceivedError
void onReceivedError(WebView view, int errorCode, String description, String failingUrl)
-
onReceivedError
void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error)
-
onRenderProcessGone
boolean onRenderProcessGone(WebView view, RenderProcessGoneDetail detail)
Reference details can be found at ...
- Parameters:
view- The WebView which needs to be cleaned up.detail- the reason why it exited.- Returns:
true if the host application handled the situation that process has exited, otherwise, application will crash if render process crashed, or be killed if render process was killed by the system.
-
-
-
-