pub trait Camera_FaceDetectionListener:
JObjRef
+ JObjNew
+ PartialEq
+ Debug {
const CLASS: &'static str = "android/hardware/Camera$FaceDetectionListener";
const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$FaceDetectionListener;";
const DIM: u8 = 0u8;
// Required method
fn on_face_detection(&self, faces: &[Camera_Face], camera: &Camera);
}
👎Deprecated: 我们建议新应用使用新的 android.hardware.camera2 API。
Expand description
预览框中检测到人脸的回调接口。
Provided Associated Constants§
Sourceconst CLASS: &'static str = "android/hardware/Camera$FaceDetectionListener"
👎Deprecated: 我们建议新应用使用新的 android.hardware.camera2 API。
const CLASS: &'static str = "android/hardware/Camera$FaceDetectionListener"
android/hardware/Camera$FaceDetectionListener
Sourceconst OBJECT_SIG: &'static str = "Landroid/hardware/Camera$FaceDetectionListener;"
👎Deprecated: 我们建议新应用使用新的 android.hardware.camera2 API。
const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$FaceDetectionListener;"
Landroid/hardware/Camera$FaceDetectionListener;
Required Methods§
Sourcefn on_face_detection(&self, faces: &[Camera_Face], camera: &Camera)
👎Deprecated: 我们建议新应用使用新的 android.hardware.camera2 API。
fn on_face_detection(&self, faces: &[Camera_Face], camera: &Camera)
通知侦听器在预览帧中检测到的脸部。
faces
列表中检测到的脸部
camera
相机服务对象
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.