Added in API level 24

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

Added in API level 24
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.

Parameters
copyResult int: Contains the resulting status of the copy request. This will either be PixelCopy.SUCCESS or one of the PixelCopy.ERROR_* values. Value is PixelCopy.SUCCESS, PixelCopy.ERROR_UNKNOWN, PixelCopy.ERROR_TIMEOUT, PixelCopy.ERROR_SOURCE_NO_DATA, PixelCopy.ERROR_SOURCE_INVALID, or PixelCopy.ERROR_DESTINATION_INVALID