Compartir a través de


ImageReader.SetOnImageAvailableListener Method

Definition

Register a listener to be invoked when a new image becomes available from the ImageReader.

[Android.Runtime.Register("setOnImageAvailableListener", "(Landroid/media/ImageReader$OnImageAvailableListener;Landroid/os/Handler;)V", "GetSetOnImageAvailableListener_Landroid_media_ImageReader_OnImageAvailableListener_Landroid_os_Handler_Handler")]
public virtual void SetOnImageAvailableListener (Android.Media.ImageReader.IOnImageAvailableListener? listener, Android.OS.Handler? handler);
[<Android.Runtime.Register("setOnImageAvailableListener", "(Landroid/media/ImageReader$OnImageAvailableListener;Landroid/os/Handler;)V", "GetSetOnImageAvailableListener_Landroid_media_ImageReader_OnImageAvailableListener_Landroid_os_Handler_Handler")>]
abstract member SetOnImageAvailableListener : Android.Media.ImageReader.IOnImageAvailableListener * Android.OS.Handler -> unit
override this.SetOnImageAvailableListener : Android.Media.ImageReader.IOnImageAvailableListener * Android.OS.Handler -> unit

Parameters

listener
ImageReader.IOnImageAvailableListener

The listener that will be run.

handler
Handler

The handler on which the listener should be invoked, or null if the listener should be invoked on the calling thread's looper.

Attributes

Exceptions

If no handler specified and the calling thread has no looper.

Remarks

Java documentation for android.media.ImageReader.setOnImageAvailableListener(android.media.OnImageAvailableListener, android.os.Handler).

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