droid_wrap::android::hardware

Trait Camera_ErrorCallback

Source
pub trait Camera_ErrorCallback:
    JObjRef
    + JObjNew
    + PartialEq
    + Debug {
    const CLASS: &'static str = "android/hardware/Camera$ErrorCallback";
    const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$ErrorCallback;";
    const DIM: u8 = 0u8;

    // Required method
    fn on_error(&self, error: i32, camera: &Camera);
}
👎Deprecated: 我们建议新应用使用新的android.hardware.camera2 API。
Expand description

相机错误通知的回调接口。

Provided Associated Constants§

Source

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

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

android/hardware/Camera$ErrorCallback

Source

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

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

Landroid/hardware/Camera$ErrorCallback;

Source

const DIM: u8 = 0u8

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

数组维度

Required Methods§

Source

fn on_error(&self, error: i32, camera: &Camera)

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

相机错误回调。 error 错误代码:CAMERA_ERROR_UNKNOWN、CAMERA_ERROR_SERVER_DIED 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§