public static interface ViewHolder.SurfaceListener
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onSurfaceAvailable() |
Called back when the surface becomes available.
|
void |
onSurfaceDestroyed() |
Called back when the surface is destroyed.
|
void |
onSurfaceSizeUpdated(int width,
int height) |
Called back when the surface is changed, for example, when the surface is resized.
|
void onSurfaceAvailable()
void onSurfaceSizeUpdated(int width,
int height)
width - Indicates the new width of the surface.height - Indicates the new height of the surface.void onSurfaceDestroyed()