最終更新:2015-12-29 (火) 14:39:22 (3033d)  

android.view.SurfaceHolder
Top / android.view.SurfaceHolder

public interface SurfaceHolder

Abstract interface to someone holding a display surface.

http://developer.android.com/reference/android/view/SurfaceHolder.html

メソッド

  • abstract CanvaslockCanvas()Start editing the pixels in the surface.
  • addCallback(SurfaceHolder.Callback callback) - Add a Callback interface for this holder.

SurfaceHolder.lockCanvas?

  • 描画を開始
  • abstract Canvas lockCanvas(Rect dirty) - Just like lockCanvas() but allows specification of a dirty rectangle.
  • abstract Canvas lockCanvas() - Start editing the pixels in the surface.

SurfaceHolder.unlockCanvasAndPost?

  • 描画を終了

コールバック

SurfaceHolder.Callback

  • abstract voidsurfaceChanged(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.
    abstract voidsurfaceCreated(SurfaceHolder holder)This is called immediately after the surface is first created.
    abstract voidsurfaceDestroyed(SurfaceHolder holder)This is called immediately before a surface is being destroyed.

SurfaceHolder.Callback2?

  • abstract voidsurfaceRedrawNeeded?(SurfaceHolder holder)Called when the application needs to redraw the content of its surface, after it is resized or for some other reason.

取得