Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PictureListener is deprecated and obsolete, is there a replacement?

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?

like image 593
ciscogambo Avatar asked Aug 23 '11 19:08

ciscogambo


1 Answers

I see with Android 4.0 the doc was updated:

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.

There is no replacement yet.

like image 86
ciscogambo Avatar answered Oct 13 '22 21:10

ciscogambo