public static interface SurfaceOps.Callback
This interface needs to be implemented by your application. It is used to provide the
callback when a Surface is created, changed, or removed. You can add the callback
using SurfaceOps#addCallback.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
surfaceChanged(SurfaceOps holder,
int format,
int width,
int height) |
Called back when the surface is changed.
|
void |
surfaceCreated(SurfaceOps holder) |
Called back when the surface is created.
|
void |
surfaceDestroyed(SurfaceOps holder) |
Called back when the surface is destroyed.
|
void surfaceCreated(SurfaceOps holder)
SurfaceOps.holder - Indicates the surface ops that holds the created surface.void surfaceChanged(SurfaceOps holder, int format, int width, int height)
SurfaceOps.holder - Indicates the surface holder that holds the changed surface.format - Indicates the surface format.width - Indicates the surface width.height - Indicates the surface height.void surfaceDestroyed(SurfaceOps holder)
SurfaceOps.holder - Indicates the surface ops that holds the destroyed surface.