Share via


TextureView.ISurfaceTextureListener.OnSurfaceTextureDestroyed Method

Definition

Invoked when the specified SurfaceTexture is about to be destroyed.

[Android.Runtime.Register("onSurfaceTextureDestroyed", "(Landroid/graphics/SurfaceTexture;)Z", "GetOnSurfaceTextureDestroyed_Landroid_graphics_SurfaceTexture_Handler:Android.Views.TextureView/ISurfaceTextureListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnSurfaceTextureDestroyed (Android.Graphics.SurfaceTexture surface);
[<Android.Runtime.Register("onSurfaceTextureDestroyed", "(Landroid/graphics/SurfaceTexture;)Z", "GetOnSurfaceTextureDestroyed_Landroid_graphics_SurfaceTexture_Handler:Android.Views.TextureView/ISurfaceTextureListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnSurfaceTextureDestroyed : Android.Graphics.SurfaceTexture -> bool

Parameters

surface
SurfaceTexture

The surface about to be destroyed

Returns

Attributes

Remarks

Invoked when the specified SurfaceTexture is about to be destroyed. If returns true, no rendering should happen inside the surface texture after this method is invoked. If returns false, the client needs to call SurfaceTexture#release(). Most applications should return true.

Java documentation for android.view.TextureView.SurfaceTextureListener.onSurfaceTextureDestroyed(android.graphics.SurfaceTexture).

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