Added in API level 24

OnPixelCopyFinishedListener


interface OnPixelCopyFinishedListener
android.view.PixelCopy.OnPixelCopyFinishedListener

Listener for observing the completion of a PixelCopy request.

Summary

Public methods
abstract Unit
onPixelCopyFinished(copyResult: Int)

Callback for when a pixel copy request has completed.

Public methods

onPixelCopyFinished

Added in API level 24
abstract fun onPixelCopyFinished(copyResult: Int): Unit

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 android.view.PixelCopy#SUCCESS, android.view.PixelCopy#ERROR_UNKNOWN, android.view.PixelCopy#ERROR_TIMEOUT, android.view.PixelCopy#ERROR_SOURCE_NO_DATA, android.view.PixelCopy#ERROR_SOURCE_INVALID, or android.view.PixelCopy#ERROR_DESTINATION_INVALID