droid_wrap::android::hardware

Trait Camera_OnZoomChangeListener

Source
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§

Source

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

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

android/hardware/Camera$OnZoomChangeListener

Source

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

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

Landroid/hardware/Camera$OnZoomChangeListener;

Source

const DIM: u8 = 0u8

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

数组维度

Required Methods§

Source

fn on_zoom_change(&self, zoom_value: i32, stopped: bool, camera: &Camera)

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

在平滑缩放期间缩放值发生变化时调用。 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.

Implementors§