다음을 통해 공유


ISurfaceHolderCallback2.SurfaceRedrawNeeded(ISurfaceHolder) Method

Definition

Called when the application needs to redraw the content of its surface, after it is resized or for some other reason.

[Android.Runtime.Register("surfaceRedrawNeeded", "(Landroid/view/SurfaceHolder;)V", "GetSurfaceRedrawNeeded_Landroid_view_SurfaceHolder_Handler:Android.Views.ISurfaceHolderCallback2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SurfaceRedrawNeeded (Android.Views.ISurfaceHolder holder);
[<Android.Runtime.Register("surfaceRedrawNeeded", "(Landroid/view/SurfaceHolder;)V", "GetSurfaceRedrawNeeded_Landroid_view_SurfaceHolder_Handler:Android.Views.ISurfaceHolderCallback2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SurfaceRedrawNeeded : Android.Views.ISurfaceHolder -> unit

Parameters

holder
ISurfaceHolder

The SurfaceHolder whose surface has changed.

Attributes

Remarks

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.

As of O, #surfaceRedrawNeededAsync may be implemented to provide a non-blocking implementation. If #surfaceRedrawNeededAsync is not implemented, then this will be called instead.

Java documentation for android.view.SurfaceHolder.Callback2.surfaceRedrawNeeded(android.view.SurfaceHolder).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to