Share via


TextureView.ISurfaceTextureListener.OnSurfaceTextureAvailable Method

Definition

Invoked when a TextureView's SurfaceTexture is ready for use.

[Android.Runtime.Register("onSurfaceTextureAvailable", "(Landroid/graphics/SurfaceTexture;II)V", "GetOnSurfaceTextureAvailable_Landroid_graphics_SurfaceTexture_IIHandler:Android.Views.TextureView/ISurfaceTextureListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnSurfaceTextureAvailable (Android.Graphics.SurfaceTexture surface, int width, int height);
[<Android.Runtime.Register("onSurfaceTextureAvailable", "(Landroid/graphics/SurfaceTexture;II)V", "GetOnSurfaceTextureAvailable_Landroid_graphics_SurfaceTexture_IIHandler:Android.Views.TextureView/ISurfaceTextureListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnSurfaceTextureAvailable : Android.Graphics.SurfaceTexture * int * int -> unit

Parameters

surface
SurfaceTexture

The surface returned by android.view.TextureView#getSurfaceTexture()

width
Int32

The width of the surface

height
Int32

The height of the surface

Attributes

Remarks

Invoked when a TextureView's SurfaceTexture is ready for use.

Java documentation for android.view.TextureView.SurfaceTextureListener.onSurfaceTextureAvailable(android.graphics.SurfaceTexture, int, int).

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