SurfaceTexture.SetOnFrameAvailableListener Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The listener to use, or null to remove the listener.
- Attributes
Remarks
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
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
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.