Most visited

Recently visited

Added in API level 8
Deprecated since API level 21

Camera.OnZoomChangeListener

public static interface Camera.OnZoomChangeListener

android.hardware.Camera.OnZoomChangeListener


该接口在API级别21中已被弃用。
我们建议将新的android.hardware.camera2 API用于新应用程序。

平滑缩放操作过程中缩放的回调界面会发生变化。

也可以看看:

Summary

Public methods

abstract void onZoomChange(int zoomValue, boolean stopped, Camera camera)

在平滑缩放期间缩放值发生变化时调用。

Public methods

onZoomChange

Added in API level 8
void onZoomChange (int zoomValue, 
                boolean stopped, 
                Camera camera)

在平滑缩放期间缩放值发生变化时调用。

Parameters
zoomValue int: the current zoom value. In smooth zoom mode, camera calls this for every new zoom value.
stopped boolean: whether smooth zoom is stopped. If the value is true, this is the last zoom update for the application.
camera Camera: the Camera service object

Hooray!