replacement for WebView.PictureListener()?

223 views
Skip to first unread message

Allen Curtis

unread,
Apr 21, 2014, 2:56:38 PM4/21/14
to android-...@googlegroups.com
Hello,

According to the documentation, the PictureListener() API has been deprecated.

What is the replacement for this interface? I am trying to determine when a page element is loaded. The onPageLoad() does not do this.

Thanks

jr...@android.com

unread,
Apr 21, 2014, 7:23:50 PM4/21/14
to android-...@googlegroups.com
If this is web content you control, you can use a JavaScript interface object to have the page call up into your app when the element has loaded.

If this isn't web content you control, then you sort of can't. PictureListener doesn't really tell you this information either. All PictureListener does is tell you that the page tried to draw something, which isn't really meaningful or informative (hence why it was deprecated).
Reply all
Reply to author
Forward
0 new messages