共用方式為


Camera.IFaceDetectionListener.OnFaceDetection(Camera+Face[], Camera) Method

Definition

Caution

deprecated

Notify the listener of the detected faces in the preview frame.

[Android.Runtime.Register("onFaceDetection", "([Landroid/hardware/Camera$Face;Landroid/hardware/Camera;)V", "GetOnFaceDetection_arrayLandroid_hardware_Camera_Face_Landroid_hardware_Camera_Handler:Android.Hardware.Camera/IFaceDetectionListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public void OnFaceDetection (Android.Hardware.Camera.Face[]? faces, Android.Hardware.Camera? camera);
[<Android.Runtime.Register("onFaceDetection", "([Landroid/hardware/Camera$Face;Landroid/hardware/Camera;)V", "GetOnFaceDetection_arrayLandroid_hardware_Camera_Face_Landroid_hardware_Camera_Handler:Android.Hardware.Camera/IFaceDetectionListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member OnFaceDetection : Android.Hardware.Camera.Face[] * Android.Hardware.Camera -> unit

Parameters

faces
Camera.Face[]

The detected faces in a list

camera
Camera

The Camera service object

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