ISurfaceHolderCallback.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:Android.Views.ISurfaceHolderCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SurfaceDestroyed (Android.Views.ISurfaceHolder holder);
[<Android.Runtime.Register("surfaceDestroyed", "(Landroid/view/SurfaceHolder;)V", "GetSurfaceDestroyed_Landroid_view_SurfaceHolder_Handler:Android.Views.ISurfaceHolderCallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SurfaceDestroyed : Android.Views.ISurfaceHolder -> unit

Parameters

holder
ISurfaceHolder

The SurfaceHolder whose surface is being destroyed.

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.

Java documentation for android.view.SurfaceHolder.Callback.surfaceDestroyed(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