Android.Media.ImageReader.SetOnImageAvailableListener Method
Register a listener to be invoked when a new image becomes available from the ImageReader.

Syntax

[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 (ImageReader.IOnImageAvailableListener listener, Android.OS.Handler handler)

Parameters

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

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionIf no handler specified and the calling thread has no looper.

Remarks

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

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0