Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static interface

SurfaceHolder.Callback2

implements SurfaceHolder.Callback
android.view.SurfaceHolder.Callback2
Known Indirect Subclasses

Class Overview

Additional callbacks that can be received for SurfaceHolder.Callback .

Summary

Public Methods
abstract void surfaceRedrawNeeded ( SurfaceHolder holder)
Called when the application needs to redraw the content of its surface, after it is resized or for some other reason.
[Expand]
Inherited Methods
From interface android.view.SurfaceHolder.Callback

Public Methods

public abstract void surfaceRedrawNeeded ( SurfaceHolder holder)

Added in API level 9

Called when the application needs to redraw the content of its surface, after it is resized or for some other reason. By not returning from here until the redraw is complete, you can ensure that the user will not see your surface in a bad state (at its new size before it has been correctly drawn that way). This will typically be preceeded by a call to surfaceChanged(SurfaceHolder, int, int, int) .

Parameters
holder The SurfaceHolder whose surface has changed.