Language

NativeActivity.SurfaceDestroyed(ISurfaceHolder) Method

Definition

This is called immediately before a surface is being destroyed.

[Android.Runtime.Register("surfaceDestroyed", "(Landroid/view/SurfaceHolder;)V", "GetSurfaceDestroyed_Landroid_view_SurfaceHolder_Handler")]
public virtual void SurfaceDestroyed(Android.Views.ISurfaceHolder? holder);
[<Android.Runtime.Register("surfaceDestroyed", "(Landroid/view/SurfaceHolder;)V", "GetSurfaceDestroyed_Landroid_view_SurfaceHolder_Handler")>]
abstract member SurfaceDestroyed : Android.Views.ISurfaceHolder -> unit
override this.SurfaceDestroyed : Android.Views.ISurfaceHolder -> unit

Parameters

holder
ISurfaceHolder

SurfaceHolder: The SurfaceHolder whose surface is being destroyed. This value cannot be null.

Implements

Attributes

Remarks

This is called immediately before a surface is being destroyed. After returning from this call, you should no longer try to access this surface. If you have a rendering thread that directly accesses the surface, you must ensure that thread is no longer touching the Surface before returning from this function.

Android reference for android.app.NativeActivity.surfaceDestroyed.

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