Share via


SurfaceTexture.SetOnFrameAvailableListener Method

Definition

Overloads

SetOnFrameAvailableListener(SurfaceTexture+IOnFrameAvailableListener)

Register a callback to be invoked when a new image frame becomes available to the SurfaceTexture.

SetOnFrameAvailableListener(SurfaceTexture+IOnFrameAvailableListener, Handler)

Register a callback to be invoked when a new image frame becomes available to the SurfaceTexture.

SetOnFrameAvailableListener(SurfaceTexture+IOnFrameAvailableListener)

Register a callback to be invoked when a new image frame becomes available to the SurfaceTexture.

[Android.Runtime.Register("setOnFrameAvailableListener", "(Landroid/graphics/SurfaceTexture$OnFrameAvailableListener;)V", "GetSetOnFrameAvailableListener_Landroid_graphics_SurfaceTexture_OnFrameAvailableListener_Handler")]
public virtual void SetOnFrameAvailableListener (Android.Graphics.SurfaceTexture.IOnFrameAvailableListener? listener);
[<Android.Runtime.Register("setOnFrameAvailableListener", "(Landroid/graphics/SurfaceTexture$OnFrameAvailableListener;)V", "GetSetOnFrameAvailableListener_Landroid_graphics_SurfaceTexture_OnFrameAvailableListener_Handler")>]
abstract member SetOnFrameAvailableListener : Android.Graphics.SurfaceTexture.IOnFrameAvailableListener -> unit
override this.SetOnFrameAvailableListener : Android.Graphics.SurfaceTexture.IOnFrameAvailableListener -> unit

Parameters

listener
SurfaceTexture.IOnFrameAvailableListener

The listener to use, or null to remove the listener.

Attributes

Remarks

Java documentation for android.graphics.SurfaceTexture.setOnFrameAvailableListener(android.graphics.OnFrameAvailableListener).

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

SetOnFrameAvailableListener(SurfaceTexture+IOnFrameAvailableListener, Handler)

Register a callback to be invoked when a new image frame becomes available to the SurfaceTexture.

[Android.Runtime.Register("setOnFrameAvailableListener", "(Landroid/graphics/SurfaceTexture$OnFrameAvailableListener;Landroid/os/Handler;)V", "GetSetOnFrameAvailableListener_Landroid_graphics_SurfaceTexture_OnFrameAvailableListener_Landroid_os_Handler_Handler")]
public virtual void SetOnFrameAvailableListener (Android.Graphics.SurfaceTexture.IOnFrameAvailableListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("setOnFrameAvailableListener", "(Landroid/graphics/SurfaceTexture$OnFrameAvailableListener;Landroid/os/Handler;)V", "GetSetOnFrameAvailableListener_Landroid_graphics_SurfaceTexture_OnFrameAvailableListener_Landroid_os_Handler_Handler")>]
abstract member SetOnFrameAvailableListener : Android.Graphics.SurfaceTexture.IOnFrameAvailableListener * Android.OS.Handler -> unit
override this.SetOnFrameAvailableListener : Android.Graphics.SurfaceTexture.IOnFrameAvailableListener * Android.OS.Handler -> unit

Parameters

listener
SurfaceTexture.IOnFrameAvailableListener

The listener to use, or null to remove the listener.

handler
Handler

The handler on which the listener should be invoked, or null to use an arbitrary thread.

Attributes

Remarks

Java documentation for android.graphics.SurfaceTexture.setOnFrameAvailableListener(android.graphics.OnFrameAvailableListener).

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