Class POBMraidWebClient
-
- All Implemented Interfaces:
public class POBMraidWebClient extends POBHTMLViewClient
A class handling the implementation of loading the MRAID creatives in WebView. It also injects the pob_mraid.js in the web container
-
-
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
-
Method Summary
Modifier and Type Method Description WebResourceResponseshouldInterceptRequest(WebView view, String url)Method Override from webview to identify the creative is mraid supported and injects pob_mraid JS into WebView content WebResourceResponseshouldInterceptRequest(WebView webView, WebResourceRequest request)Method Override from webview to identify the creative is mraid supported and injects pob_mraid JS into WebView content, the method works above version Build.VERSION_CODES. -
Methods inherited from class com.pubmatic.sdk.webrendering.ui.POBHTMLViewClient
disableMultipleOnPageFinished, onPageFinished, onReceivedError, onReceivedError, onRenderProcessGone, setHTMLClientListener, shouldOverrideUrlLoading, shouldOverrideUrlLoading -
Methods inherited from class android.webkit.WebViewClient
doUpdateVisitedHistory, onFormResubmission, onLoadResource, onPageCommitVisible, onPageFinished, onPageStarted, onReceivedClientCertRequest, onReceivedError, onReceivedHttpAuthRequest, onReceivedHttpError, onReceivedLoginRequest, onReceivedSslError, onRenderProcessGone, onSafeBrowsingHit, onScaleChanged, onTooManyRedirects, onUnhandledKeyEvent, shouldOverrideKeyEvent, shouldOverrideUrlLoading -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
shouldInterceptRequest
WebResourceResponse shouldInterceptRequest(WebView view, String url)
Method Override from webview to identify the creative is mraid supported and injects pob_mraid JS into WebView content
- Parameters:
view- on which pob_mraid js to be injectedurl- which is used to check if there is any mraid dependency- Returns:
default callback if does not match, if matchs returns true
-
shouldInterceptRequest
WebResourceResponse shouldInterceptRequest(WebView webView, WebResourceRequest request)
Method Override from webview to identify the creative is mraid supported and injects pob_mraid JS into WebView content, the method works above version Build.VERSION_CODES.LOLLIPOP
- Parameters:
webView- on which pob_mraid js to be injectedrequest- which is used to check if there is any mraid dependency- Returns:
default callback if does not match, if matchs returns true
-
-
-
-