2

我正在与xWalkWebView

我想知道这个代码的等价物

webView.setWebViewClient(new WebViewClient() {

        @Override
        public void onPageStarted(WebView view, String url, Bitmap favicon) {
            super.onPageStarted(view, url, favicon);
            // progressBar.setVisibility(View.VISIBLE);
        }

        @Override
        public void onPageFinished(WebView view, String url) {
            super.onPageFinished(view, url);
            // progressBar.setVisibility(View.GONE);
        }

        @Override
        public void onReceivedHttpAuthRequest(WebView view,
                    HttpAuthHandler handler, String host, String realm) {


        }
});
4

1 回答 1

1

感谢使用 Crosswalk,您也可以通过发送电子邮件至

crosswalk-help@lists.crosswalk-project.org

对于这个问题:

  mXWalkView.setUIClient(new XWalkUIClient(mXWalkView) {
        @Override
        public void onPageLoadStarted(XWalkView view, String url) {
            System.out.println("onPageLoadStarted  " +url);
        }
        @Override
        public void onPageLoadStopped(XWalkView view, String url, 
                    LoadStatus status) {
            System.out.println("onPageLoadStopped  " + status);
        }
    });

  mXWalkView.setResourceClient(new XWalkResourceClient(mXWalkView) {
        @Override
        public void onReceivedHttpAuthRequest(XWalkView view, 
                    XWalkHttpAuthHandler handler, String host, String realm) {
            System.out.println("onReceivedHttpAuthRequest");
        }
    });
于 2016-05-09T08:46:54.853 回答