File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
core/java/android/hardware Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -9451,6 +9451,7 @@ package android.hardware {
94519451 method public static android.hardware.Camera open();
94529452 method public final void reconnect() throws java.io.IOException;
94539453 method public final void release();
9454+ method public void setAutoFocusMoveCallback(android.hardware.Camera.AutoFocusMoveCallback);
94549455 method public final void setDisplayOrientation(int);
94559456 method public final void setErrorCallback(android.hardware.Camera.ErrorCallback);
94569457 method public final void setFaceDetectionListener(android.hardware.Camera.FaceDetectionListener);
@@ -9486,6 +9487,10 @@ package android.hardware {
94869487 method public abstract void onAutoFocus(boolean, android.hardware.Camera);
94879488 }
94889489
9490+ public static abstract interface Camera.AutoFocusMoveCallback {
9491+ method public abstract void onAutoFocusMoving(boolean, android.hardware.Camera);
9492+ }
9493+
94899494 public static class Camera.CameraInfo {
94909495 ctor public Camera.CameraInfo();
94919496 field public static final int CAMERA_FACING_BACK = 0; // 0x0
Original file line number Diff line number Diff line change @@ -950,19 +950,18 @@ public final void cancelAutoFocus()
950950 /**
951951 * Callback interface used to notify on auto focus start and stop.
952952 *
953- * <p>This is useful for continuous autofocus -- {@link Parameters#FOCUS_MODE_CONTINUOUS_VIDEO}
954- * and {@link Parameters#FOCUS_MODE_CONTINUOUS_PICTURE}. Applications can
955- * show autofocus animation.</p>
956- *
957- * @hide
953+ * <p>This is only supported in continuous autofocus modes -- {@link
954+ * Parameters#FOCUS_MODE_CONTINUOUS_VIDEO} and {@link
955+ * Parameters#FOCUS_MODE_CONTINUOUS_PICTURE}. Applications can show
956+ * autofocus animation based on this.</p>
958957 */
959958 public interface AutoFocusMoveCallback
960959 {
961960 /**
962961 * Called when the camera auto focus starts or stops.
963962 *
964963 * @param start true if focus starts to move, false if focus stops to move
965- * @param camera the Camera service object
964+ * @param camera the Camera service object
966965 */
967966 void onAutoFocusMoving (boolean start , Camera camera );
968967 }
@@ -971,7 +970,6 @@ public interface AutoFocusMoveCallback
971970 * Sets camera auto-focus move callback.
972971 *
973972 * @param cb the callback to run
974- * @hide
975973 */
976974 public void setAutoFocusMoveCallback (AutoFocusMoveCallback cb ) {
977975 mAutoFocusMoveCallback = cb ;
You can’t perform that action at this time.
0 commit comments