Java android.view SurfaceHolder fields, constructors, methods, implement or subclass

Example usage for Java android.view SurfaceHolder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view SurfaceHolder.

The text is from its open source code.

Field

Method

voidaddCallback(Callback callback)
Add a Callback interface for this holder.
SurfacegetSurface()
Direct access to the surface object.
RectgetSurfaceFrame()
Retrieve the current size of the surface.
CanvaslockCanvas(Rect dirty)
Just like #lockCanvas() but allows specification of a dirty rectangle.
CanvaslockCanvas()
Start editing the pixels in the surface.
voidremoveCallback(Callback callback)
Removes a previously added Callback interface from this holder.
voidsetFixedSize(int width, int height)
Make the surface a fixed size.
voidsetFormat(int format)
Set the desired PixelFormat of the surface.
voidsetKeepScreenOn(boolean screenOn)
Enable or disable option to keep the screen turned on while this surface is displayed.
voidsetType(int type)
Sets the surface's type.
voidunlockCanvasAndPost(Canvas canvas)
Finish editing pixels in the surface.