android.hardware.camera2
API for new
applications.@Deprecated public static interface Camera.AutoFocusCallback
Devices that do not support auto-focus will receive a "fake"
callback to this interface. If your application needs auto-focus and
should not be installed on devices without auto-focus, you must
declare that your app uses the
android.hardware.camera.autofocus
feature, in the
<uses-feature>
manifest element.
Camera.autoFocus(AutoFocusCallback)
Modifier and Type | Method and Description |
---|---|
void |
onAutoFocus(boolean success,
Camera camera)
Deprecated.
Called when the camera auto focus completes.
|
void onAutoFocus(boolean success, Camera camera)
success
set to true
.
The auto-focus routine does not lock auto-exposure and auto-white
balance after it completes.success
- true if focus was successful, false if otherwisecamera
- the Camera service objectCamera.Parameters.setAutoExposureLock(boolean)
,
Camera.Parameters.setAutoWhiteBalanceLock(boolean)