Stay organized with collections
Save and categorize content based on your preferences.
WebView.PictureListener
public
static
interface
WebView.PictureListener
android.webkit.WebView.PictureListener
|
This interface was deprecated
in API level 12.
This interface is now obsolete.
Interface to listen for new pictures as they change.
Summary
Public methods |
abstract
void
|
onNewPicture(WebView view, Picture picture)
This method is deprecated.
Deprecated due to internal changes.
|
Public methods
onNewPicture
public abstract void onNewPicture (WebView view,
Picture picture)
This method is 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.
Parameters |
view |
WebView : the WebView that owns the picture |
picture |
Picture : the new picture. Applications targeting
Build.VERSION_CODES.JELLY_BEAN_MR2 or above
will always receive a null 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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n12](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nWebView.PictureListener\n=======================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/webkit/WebView.PictureListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nWebView.PictureListener\n`\n\n\n`\n\n\n`\n\n|----------------------------------------|\n| android.webkit.WebView.PictureListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface was deprecated\nin API level 12.** \n\nThis interface is now obsolete.\n\nInterface to listen for new pictures as they change.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onNewPicture](/reference/android/webkit/WebView.PictureListener#onNewPicture(android.webkit.WebView,%20android.graphics.Picture))`(`[WebView](/reference/android/webkit/WebView)` view, `[Picture](/reference/android/graphics/Picture)` picture) ` *This method is deprecated. Deprecated due to internal changes.* |\n\nPublic methods\n--------------\n\n### onNewPicture\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onNewPicture (WebView view, \n Picture picture)\n```\n\n\n**This method is deprecated.** \n\nDeprecated due to internal changes.\n\nUsed to provide notification that the WebView's picture has changed.\nSee [WebView.capturePicture](/reference/android/webkit/WebView#capturePicture()) for details of the picture.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `view` | `WebView`: the WebView that owns the picture \u003cbr /\u003e |\n| `picture` | `Picture`: the new picture. Applications targeting [Build.VERSION_CODES.JELLY_BEAN_MR2](/reference/android/os/Build.VERSION_CODES#JELLY_BEAN_MR2) or above will always receive a `null` Picture. \u003cbr /\u003e |"]]