Skip to content

Most visited

Recently visited

navigation

SurfaceHolder.Callback2

public static interface SurfaceHolder.Callback2
implements SurfaceHolder.Callback

android.view.SurfaceHolder.Callback2
Known Indirect Subclasses


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.

Inherited methods

From interface android.view.SurfaceHolder.Callback

Public methods

surfaceRedrawNeeded

Added in API level 9
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. 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 SurfaceHolder: The SurfaceHolder whose surface has changed.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.