ImageReader.SetOnImageAvailableListener 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.
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
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
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.