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

    • Constructor Detail

    • 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 injected
        url - 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 injected
        request - which is used to check if there is any mraid dependency
        Returns:

        default callback if does not match, if matchs returns true