Java android.graphics SurfaceTexture fields, constructors, methods, implement or subclass

Example usage for Java android.graphics SurfaceTexture fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.graphics SurfaceTexture.

The text is from its open source code.

Constructor

SurfaceTexture(int texName)
Construct a new SurfaceTexture to stream images to a given OpenGL texture.
SurfaceTexture(boolean singleBufferMode)
Construct a new SurfaceTexture to stream images to a given OpenGL texture.

Method

voidsetDefaultBufferSize(int width, int height)
Set the default size of the image buffers.
voidsetOnFrameAvailableListener(@Nullable OnFrameAvailableListener listener)
Register a callback to be invoked when a new image frame becomes available to the SurfaceTexture.