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

Syntax

[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 (ISurfaceHolder holder)

Parameters

holder
The SurfaceHolder whose surface has changed.

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 ISurfaceHolderCallback.SurfaceChanged(ISurfaceHolder, Android.Graphics.Format, Android.Graphics.Format, Android.Graphics.Format).

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9