PictureListener是德precated和过时的,是有一个替代? [英] PictureListener is deprecated and obsolete, is there a replacement?

查看:220
本文介绍了PictureListener是德precated和过时的,是有一个替代?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通知当图像已经完全画上的WebView。使用<一个href="http://developer.android.com/reference/android/webkit/WebView.PictureListener.html">PictureListener和onNewPicture 是一个常见的​​答案(甚至被 onPageFinished文档建议)这但被列为德precated和过时。是否有替代/替代?

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 onPageFinished documentation) to this but is listed as deprecated and obsolete. Is there a replacement/alternative?

推荐答案

我与Android 4.0看文档进行了更新:

I see with Android 4.0 the doc was updated:

此方法去precated。由于内部的变化,画面不   不包括复合层,例如固定位置的元件或   滚动的div。而PictureListener API仍然可以用于   检测变化的WebView内容,建议对其   使用直到更换在未来的Andr​​oid版本中提供。

This method is deprecated. Due to internal changes, the picture does not include composited layers such as fixed position elements or scrollable divs. While the PictureListener API can still be used to detect changes in the WebView content, you are advised against its usage until a replacement is provided in a future Android release.

对于没有更换呢。

这篇关于PictureListener是德precated和过时的,是有一个替代?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆