|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface SurfaceHolder.Callback
A client may implement this interface to receive information about
changes to the surface. When used with a SurfaceView, the
Surface being held is only available between calls to
surfaceCreated(SurfaceHolder) and
#surfaceDestroyed(SurfaceHolder). The Callback is set with
{@link SurfaceHolder#addCallback SurfaceHolder.addCallback} method.
| Method Summary | |
|---|---|
void |
surfaceChanged(SurfaceHolder holder,
int format,
int width,
int height)
This is called immediately after any structural changes (format or size) have been made to the surface. |
void |
surfaceCreated(SurfaceHolder holder)
This is called immediately after the surface is first created. |
void |
surfaceDestroyed(SurfaceHolder holder)
This is called immediately before a surface is being destroyed. |
| Method Detail |
|---|
void surfaceCreated(SurfaceHolder holder)
Surface, so you should not draw into the Surface here
if your normal rendering will be in another thread.
holder - The SurfaceHolder whose surface is being created.
void surfaceChanged(SurfaceHolder holder,
int format,
int width,
int height)
surfaceCreated(android.view.SurfaceHolder).
holder - The SurfaceHolder whose surface has changed.format - The new PixelFormat of the surface.width - The new width of the surface.height - The new height of the surface.void surfaceDestroyed(SurfaceHolder holder)
holder - The SurfaceHolder whose surface is being destroyed.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||