pub trait Camera_PictureCallback:
JObjRef
+ JObjNew
+ PartialEq
+ Debug {
const CLASS: &'static str = "android/hardware/Camera$PictureCallback";
const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$PictureCallback;";
const DIM: u8 = 0u8;
// Required method
fn on_picture_taken(&self, data: &[u8], camera: &Camera);
}
👎Deprecated: 我们建议在新应用程序中使用新的 android.hardware.camera2 API。
Expand description
用于提供照片捕获图像数据的回调接口。
Provided Associated Constants§
Sourceconst CLASS: &'static str = "android/hardware/Camera$PictureCallback"
👎Deprecated: 我们建议在新应用程序中使用新的 android.hardware.camera2 API。
const CLASS: &'static str = "android/hardware/Camera$PictureCallback"
android/hardware/Camera$PictureCallback
Sourceconst OBJECT_SIG: &'static str = "Landroid/hardware/Camera$PictureCallback;"
👎Deprecated: 我们建议在新应用程序中使用新的 android.hardware.camera2 API。
const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$PictureCallback;"
Landroid/hardware/Camera$PictureCallback;
Required Methods§
Sourcefn on_picture_taken(&self, data: &[u8], camera: &Camera)
👎Deprecated: 我们建议在新应用程序中使用新的 android.hardware.camera2 API。
fn on_picture_taken(&self, data: &[u8], camera: &Camera)
拍摄照片后,当图像数据可用时调用。数据的格式取决于回调上下文和 Camera.Parameters 设置。
data
图像数据的字节数组 camera – 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.