pub trait Camera_OnZoomChangeListener:
JObjRef
+ JObjNew
+ PartialEq
+ Debug {
const CLASS: &'static str = "android/hardware/Camera$OnZoomChangeListener";
const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$OnZoomChangeListener;";
const DIM: u8 = 0u8;
// Required method
fn on_zoom_change(&self, zoom_value: i32, stopped: bool, camera: &Camera);
}
👎Deprecated: 我们建议新应用使用新的 android.hardware.camera2 API。
Expand description
平滑缩放操作期间缩放变化的回调接口。
Provided Associated Constants§
Sourceconst CLASS: &'static str = "android/hardware/Camera$OnZoomChangeListener"
👎Deprecated: 我们建议新应用使用新的 android.hardware.camera2 API。
const CLASS: &'static str = "android/hardware/Camera$OnZoomChangeListener"
android/hardware/Camera$OnZoomChangeListener
Sourceconst OBJECT_SIG: &'static str = "Landroid/hardware/Camera$OnZoomChangeListener;"
👎Deprecated: 我们建议新应用使用新的 android.hardware.camera2 API。
const OBJECT_SIG: &'static str = "Landroid/hardware/Camera$OnZoomChangeListener;"
Landroid/hardware/Camera$OnZoomChangeListener;
Required Methods§
Sourcefn on_zoom_change(&self, zoom_value: i32, stopped: bool, camera: &Camera)
👎Deprecated: 我们建议新应用使用新的 android.hardware.camera2 API。
fn on_zoom_change(&self, zoom_value: i32, stopped: bool, camera: &Camera)
在平滑缩放期间缩放值发生变化时调用。
zoom_value
当前缩放值。在平滑缩放模式下,相机会为每个新的 缩放值调用此函数。
stopped
平滑缩放是否停止。如果值为 true,则这是应用程序的-最后一次缩放更新。
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.