Example usage for Java android.view SurfaceHolder fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addCallback(Callback callback) Add a Callback interface for this holder. |
Surface | getSurface() Direct access to the surface object. |
Rect | getSurfaceFrame() Retrieve the current size of the surface. |
Canvas | lockCanvas(Rect dirty) Just like #lockCanvas() but allows specification of a dirty rectangle. |
Canvas | lockCanvas() Start editing the pixels in the surface. |
void | removeCallback(Callback callback) Removes a previously added Callback interface from this holder. |
void | setFixedSize(int width, int height) Make the surface a fixed size. |
void | setFormat(int format) Set the desired PixelFormat of the surface. |
void | setKeepScreenOn(boolean screenOn) Enable or disable option to keep the screen turned on while this surface is displayed. |
void | setType(int type) Sets the surface's type. |
void | unlockCanvasAndPost(Canvas canvas) Finish editing pixels in the surface. |