PictureListener is deprecated and obsolete, is there a replacement?

前端 未结 2 1067
北恋
北恋 2020-12-30 01:32

I would like to be notified when an image has been completely draw on the WebView. Using PictureListener and onNewPicture is a common answer (even suggested by the onPageFi

2条回答
  •  我在风中等你
    2020-12-30 02:15

    how about

    webview.setWebViewClient(new WebViewClient(){
    
        @Override
        public void onPageFinished(WebView view, String url) {
            // you can get the picture here
            super.onPageFinished(view, url);
    
        }
    });
    

提交回复
热议问题