android.hardware.Camera.AutoFocusMoveCallback Java Examples
The following examples show how to use
android.hardware.Camera.AutoFocusMoveCallback.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AndroidCameraAgentImpl.java From Camera2 with Apache License 2.0 | 5 votes |
@TargetApi(Build.VERSION_CODES.JELLY_BEAN) private void setAutoFocusMoveCallback( android.hardware.Camera camera, Object cb) { try { camera.setAutoFocusMoveCallback((AutoFocusMoveCallback) cb); } catch (RuntimeException ex) { Log.w(TAG, ex.getMessage()); } }
Example #2
Source File: DefaultEasyCamera.java From Expert-Android-Programming with MIT License | 4 votes |
@Override public void setAutoFocusMoveCallback(AutoFocusMoveCallback cb) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { camera.setAutoFocusMoveCallback(cb); } }
Example #3
Source File: DefaultEasyCamera.java From EasyCamera with Apache License 2.0 | 4 votes |
@Override public void setAutoFocusMoveCallback(AutoFocusMoveCallback cb) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { camera.setAutoFocusMoveCallback(cb); } }