droid_wrap::android::hardware

Trait Camera_FaceDetectionListener

Source
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§

Source

const CLASS: &'static str = "android/hardware/Camera$FaceDetectionListener"

👎Deprecated: 我们建议新应用使用新的 android.hardware.camera2 API。

android/hardware/Camera$FaceDetectionListener

Source

const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$FaceDetectionListener;"

👎Deprecated: 我们建议新应用使用新的 android.hardware.camera2 API。

Landroid/hardware/Camera$FaceDetectionListener;

Source

const DIM: u8 = 0u8

👎Deprecated: 我们建议新应用使用新的 android.hardware.camera2 API。

数组维度

Required Methods§

Source

fn on_face_detection(&self, faces: &[Camera_Face], camera: &Camera)

👎Deprecated: 我们建议新应用使用新的 android.hardware.camera2 API。

通知侦听器在预览帧中检测到的脸部。 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.

Implementors§