Class BaseJSInterface

    • Field Detail

      • context

        protected android.content.Context context
    • Constructor Detail

      • BaseJSInterface

        public BaseJSInterface​(android.content.Context context,
                               WebViewBase adBaseView,
                               JsExecutor jsExecutor)
    • Method Detail

      • expand

        public void expand​(java.lang.String url)
        Specified by:
        expand in interface JSInterface
      • open

        public void open​(java.lang.String url)
        Specified by:
        open in interface JSInterface
      • javaScriptCallback

        public void javaScriptCallback​(java.lang.String handlerHash,
                                       java.lang.String method,
                                       java.lang.String value)
        Specified by:
        javaScriptCallback in interface JSInterface
      • storePicture

        public void storePicture​(java.lang.String url)
        Specified by:
        storePicture in interface JSInterface
      • supports

        public boolean supports​(java.lang.String feature)
        Specified by:
        supports in interface JSInterface
      • playVideo

        public void playVideo​(java.lang.String url)
        Specified by:
        playVideo in interface JSInterface
      • shouldUseCustomClose

        @Deprecated
        public void shouldUseCustomClose​(java.lang.String useCustomClose)
        Deprecated.
        Specified by:
        shouldUseCustomClose in interface JSInterface
      • onStateChange

        public void onStateChange​(java.lang.String state)
      • handleScreenViewabilityChange

        public void handleScreenViewabilityChange​(boolean isViewable)
      • onError

        public void onError​(java.lang.String message,
                            java.lang.String action)
      • followToOriginalUrl

        public void followToOriginalUrl​(java.lang.String url,
                                        RedirectUrlListener listener)
      • setDefaultLayoutParams

        public void setDefaultLayoutParams​(android.view.ViewGroup.LayoutParams originalParentLayoutParams)
      • getDefaultLayoutParams

        public android.view.ViewGroup.LayoutParams getDefaultLayoutParams()
      • getRootView

        public android.view.ViewGroup getRootView()
      • getJsExecutor

        public JsExecutor getJsExecutor()
      • loading

        public void loading()
      • onReadyExpanded

        public void onReadyExpanded()
      • prepareAndSendReady

        public void prepareAndSendReady()
      • updateScreenMetricsAsync

        public void updateScreenMetricsAsync​(java.lang.Runnable successRunnable)
        Updates screen metrics, calling the successRunnable once they are available. The successRunnable will always be called asynchronously, ie on the next main thread loop.
      • destroy

        public void destroy()
      • notifyScreenMetricsChanged

        protected void notifyScreenMetricsChanged()