Stay organized with collections
Save and categorize content based on your preferences.
PictureListener
interface PictureListener
Interface to listen for new pictures as they change.
Summary
Public methods |
abstract Unit |
Used to provide notification that the WebView's picture has changed.
|
Public methods
onNewPicture
abstract fun onNewPicture(
view: WebView!,
picture: Picture?
): Unit
Deprecated: Deprecated due to internal changes.
Used to provide notification that the WebView's picture has changed. See WebView.capturePicture
for details of the picture.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# WebView.PictureListener\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPictureListener\n===============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/webkit/WebView.PictureListener \"View this page in Java\") \n\n```\ninterface PictureListener\n```\n\n|---------------------------------------------|\n| [android.webkit.WebView.PictureListener](#) |\n\n*** ** * ** ***\n\n| **This interface was deprecated in API level 12.**\n|\n| This interface is now obsolete.\n\nInterface to listen for new pictures as they change.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onNewPicture](#onNewPicture(android.webkit.WebView,%20android.graphics.Picture))`(`view:` `[WebView](/reference/kotlin/android/webkit/WebView)!`, `picture:` `[Picture](../graphics/Picture.html#)?`)` Used to provide notification that the WebView's picture has changed. |\n\nPublic methods\n--------------\n\n### onNewPicture\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onNewPicture(\n view: WebView!, \n picture: Picture?\n): Unit\n```\n\n**Deprecated:** *Deprecated due to internal changes.*\n\nUsed to provide notification that the WebView's picture has changed. See [WebView.capturePicture](/reference/kotlin/android/webkit/WebView#capturePicture()) for details of the picture.\n\n| Parameters ||\n|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `view` | [WebView](/reference/kotlin/android/webkit/WebView)!: the WebView that owns the picture |\n| `picture` | [Picture](../graphics/Picture.html#)?: the new picture. Applications targeting [android.os.Build.VERSION_CODES#JELLY_BEAN_MR2](../os/Build.VERSION_CODES.html#JELLY_BEAN_MR2:kotlin.Int) or above will always receive a `null` Picture. |"]]