pub trait Camera_ShutterCallback:
JObjRef
+ JObjNew
+ PartialEq
+ Debug {
const CLASS: &'static str = "android/hardware/Camera$ShutterCallback";
const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$ShutterCallback;";
const DIM: u8 = 0u8;
// Required method
fn on_shutter(&self);
}
👎Deprecated: 我们建议在新应用中使用新的 android.hardware.camera2 API。
Expand description
用于发出实际图像捕获时刻信号的回调接口。
Provided Associated Constants§
Sourceconst CLASS: &'static str = "android/hardware/Camera$ShutterCallback"
👎Deprecated: 我们建议在新应用中使用新的 android.hardware.camera2 API。
const CLASS: &'static str = "android/hardware/Camera$ShutterCallback"
android/hardware/Camera$ShutterCallback
Sourceconst OBJECT_SIG: &'static str = "Landroid/hardware/Camera$ShutterCallback;"
👎Deprecated: 我们建议在新应用中使用新的 android.hardware.camera2 API。
const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$ShutterCallback;"
Landroid/hardware/Camera$ShutterCallback;
Required Methods§
Sourcefn on_shutter(&self)
👎Deprecated: 我们建议在新应用中使用新的 android.hardware.camera2 API。
fn on_shutter(&self)
尽可能在照片从传感器捕获时调用。这是播放快门声音或提供相机操作的其他反馈的好机会。 这可能发生在照片触发后的某个时间,但在实际数据可用之前的某个时间。
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.