Package com.netmera

Interface NetmeraWebViewCallback


  • public interface NetmeraWebViewCallback
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onPageCommitVisible​(android.webkit.WebView view, java.lang.String url)  
      void onPageLoaded​(android.webkit.WebView view, java.lang.String url)  
      boolean shouldOverrideUrlLoading​(android.webkit.WebView view, java.lang.String url)
      Give the host application a chance to take over the control when a new url is about to be loaded in the current WebView.
    • Method Detail

      • shouldOverrideUrlLoading

        boolean shouldOverrideUrlLoading​(android.webkit.WebView view,
                                         java.lang.String url)
        Give the host application a chance to take over the control when a new url is about to be loaded in the current WebView. If WebViewClient is not provided, by default WebView will ask Activity Manager to choose the proper handler for the url. If WebViewClient is provided, return true means the host application handles the url, while return false means the current WebView handles the url. This method is not called for requests using the POST "method".
        Parameters:
        view - The WebView that is initiating the callback.
        url - The url to be loaded.
        Returns:
        True if the host application wants to leave the current WebView and handle the url itself, otherwise return false.
      • onPageLoaded

        void onPageLoaded​(android.webkit.WebView view,
                          java.lang.String url)
      • onPageCommitVisible

        void onPageCommitVisible​(android.webkit.WebView view,
                                 java.lang.String url)