Most visited

Recently visited

Added in API level 9

SurfaceHolder.Callback2

public static interface SurfaceHolder.Callback2
implements SurfaceHolder.Callback

android.view.SurfaceHolder.Callback2
Known Indirect Subclasses


额外的回调,可以收到 SurfaceHolder.Callback

Summary

Public methods

abstract void surfaceRedrawNeeded(SurfaceHolder holder)

当应用程序需要重新绘制其表面的内容,调整大小或出于某种其他原因时调用。

Inherited methods

From interface android.view.SurfaceHolder.Callback

Public methods

surfaceRedrawNeeded

Added in API level 9
void surfaceRedrawNeeded (SurfaceHolder holder)

当应用程序需要重新绘制其表面的内容,调整大小或出于某种其他原因时调用。 在完成重画之前,如果不从这里返回,则可以确保用户不会看到表面处于不良状态(在以正确方式绘制之前以新尺寸显示)。 这通常会通过致电surfaceChanged(SurfaceHolder, int, int, int)

Parameters
holder SurfaceHolder: The SurfaceHolder whose surface has changed.

Hooray!