PictureListener是德precated和过时的,是有一个替代?是有、PictureListener、precated

2023-09-05 08:44:19 作者:你拿什么资本跟我傲!

我想通知当图像已经完全画上的WebView。使用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.

对于没有更换呢。

 
精彩推荐