android - PictureListener 已弃用和过时,有替代品吗?

标签 android webview deprecated

我希望在 WebView 上完全绘制图像时收到通知。使用 PictureListener and onNewPicture是对此的常见答案(甚至由 onPageFinished documentation 建议),但被列为已弃用和过时。有替代品/替代品吗?

最佳答案

我看到 Android 4.0 的文档已更新:

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.

目前还没有替代品。

关于android - PictureListener 已弃用和过时,有替代品吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7166534/

相关文章:

android - ADT R22 - Proguard - 找不到引用的类

google-chrome - <webview> 标签不工作 Chrome 打包扩展

ios - UIImage 方法 stretchableImageWithLeftCapWidth 的弃用状态差异 :topCapHeight: in doc and header file

java - 为什么不推荐使用此方法? (碧 Jade 报道)

android - 广播接收器是否依赖于 Binder 或 Intent ,Android

android - 是否可以在一个布局中制作两个具有相同 ID 的按钮?

android - 多个 AAR 文件

android - 如何在 Webview 中启用 Flash 插件?

Android:后退按钮导致 WebView 查找错误的 Assets

image - thumbnailImageAtTime : now deprecated - What's the alternative?