Most visited

Recently visited

Added in API level 16
Deprecated since API level 21

Camera.AutoFocusMoveCallback

public static interface Camera.AutoFocusMoveCallback

android.hardware.Camera.AutoFocusMoveCallback


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

回叫界面用于通知自动对焦启动和停止。

这仅在连续自动对焦模式下支持 - FOCUS_MODE_CONTINUOUS_VIDEOFOCUS_MODE_CONTINUOUS_PICTURE 应用程序可以基于此显示自动对焦动画。

Summary

Public methods

abstract void onAutoFocusMoving(boolean start, Camera camera)

照相机自动对焦开始或停止时调用。

Public methods

onAutoFocusMoving

Added in API level 16
void onAutoFocusMoving (boolean start, 
                Camera camera)

照相机自动对焦开始或停止时调用。

Parameters
start boolean: true if focus starts to move, false if focus stops to move
camera Camera: the Camera service object

Hooray!