pub trait Camera_AutoFocusMoveCallback:
JObjRef
+ JObjNew
+ PartialEq
+ Debug {
const CLASS: &'static str = "android/hardware/Camera$AutoFocusMoveCallback";
const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$AutoFocusMoveCallback;";
const DIM: u8 = 0u8;
// Required method
fn on_auto_focus_moving(&self, start: bool, camera: &Camera);
}
👎Deprecated: 我们建议新应用程序使用新的 android.hardware.camera2 API。
Expand description
用于通知自动对焦开始和停止的回调接口。这仅在连续自动对焦模式下受支持 - Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO 和 Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE。 应用程序可以在此基础上显示自动对焦动画。
Provided Associated Constants§
Sourceconst CLASS: &'static str = "android/hardware/Camera$AutoFocusMoveCallback"
👎Deprecated: 我们建议新应用程序使用新的 android.hardware.camera2 API。
const CLASS: &'static str = "android/hardware/Camera$AutoFocusMoveCallback"
android/hardware/Camera$AutoFocusMoveCallback
Sourceconst OBJECT_SIG: &'static str = "Landroid/hardware/Camera$AutoFocusMoveCallback;"
👎Deprecated: 我们建议新应用程序使用新的 android.hardware.camera2 API。
const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$AutoFocusMoveCallback;"
Landroid/hardware/Camera$AutoFocusMoveCallback;
Required Methods§
Sourcefn on_auto_focus_moving(&self, start: bool, camera: &Camera)
👎Deprecated: 我们建议新应用程序使用新的 android.hardware.camera2 API。
fn on_auto_focus_moving(&self, start: bool, camera: &Camera)
当相机自动对焦开始或停止时调用。
start
如果焦点开始移动则为 true,如果焦点停止移动则为 false
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.