Added in API level 34

PixelCopy.Request.Builder


public static final class PixelCopy.Request.Builder
extends Object

java.lang.Object
   ↳ android.view.PixelCopy.Request.Builder


A builder to create the complete PixelCopy request, which is then executed by calling request(Request,Executor,Consumer) with the built request returned from build()

Summary

Public methods

PixelCopy.Request build()
static PixelCopy.Request.Builder ofSurface(SurfaceView source)

Creates a PixelCopy Builder for the Surface belonging to the given SurfaceView

static PixelCopy.Request.Builder ofSurface(Surface source)

Creates a PixelCopy Builder for the given Surface

static PixelCopy.Request.Builder ofWindow(Window source)

Creates a PixelCopy Builder for the given Window

static PixelCopy.Request.Builder ofWindow(View source)

Creates a PixelCopy Builder for the Window that the given View is attached to.

PixelCopy.Request.Builder setDestinationBitmap(Bitmap destination)

Specifies the output bitmap in which to store the result.

PixelCopy.Request.Builder setSourceRect(Rect srcRect)

Sets the region of the source to copy from.

Inherited methods