Stay organized with collections
Save and categorize content based on your preferences.
PixelCopy.OnPixelCopyFinishedListener
public
static
interface
PixelCopy.OnPixelCopyFinishedListener
android.view.PixelCopy.OnPixelCopyFinishedListener
|
Listener for observing the completion of a PixelCopy request.
Summary
Public methods |
abstract
void
|
onPixelCopyFinished(int copyResult)
Callback for when a pixel copy request has completed.
|
Public methods
onPixelCopyFinished
public abstract void onPixelCopyFinished (int copyResult)
Callback for when a pixel copy request has completed. This will be called
regardless of whether the copy succeeded or failed.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# PixelCopy.OnPixelCopyFinishedListener\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nPixelCopy.OnPixelCopyFinishedListener\n=====================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/view/PixelCopy.OnPixelCopyFinishedListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nPixelCopy.OnPixelCopyFinishedListener\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------------|\n| android.view.PixelCopy.OnPixelCopyFinishedListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListener for observing the completion of a PixelCopy request.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onPixelCopyFinished](/reference/android/view/PixelCopy.OnPixelCopyFinishedListener#onPixelCopyFinished(int))`(int copyResult) ` Callback for when a pixel copy request has completed. |\n\nPublic methods\n--------------\n\n### onPixelCopyFinished\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onPixelCopyFinished (int copyResult)\n```\n\nCallback for when a pixel copy request has completed. This will be called\nregardless of whether the copy succeeded or failed.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `copyResult` | `int`: Contains the resulting status of the copy request. This will either be [PixelCopy.SUCCESS](/reference/android/view/PixelCopy#SUCCESS) or one of the `PixelCopy.ERROR_*` values. Value is [PixelCopy.SUCCESS](/reference/android/view/PixelCopy#SUCCESS), [PixelCopy.ERROR_UNKNOWN](/reference/android/view/PixelCopy#ERROR_UNKNOWN), [PixelCopy.ERROR_TIMEOUT](/reference/android/view/PixelCopy#ERROR_TIMEOUT), [PixelCopy.ERROR_SOURCE_NO_DATA](/reference/android/view/PixelCopy#ERROR_SOURCE_NO_DATA), [PixelCopy.ERROR_SOURCE_INVALID](/reference/android/view/PixelCopy#ERROR_SOURCE_INVALID), or [PixelCopy.ERROR_DESTINATION_INVALID](/reference/android/view/PixelCopy#ERROR_DESTINATION_INVALID) \u003cbr /\u003e |"]]