Code example for Camera

Methods: setOneShotPreviewCallback

0
    private Camera.AutoFocusCallback mAutoFocusCallBack = new Camera.AutoFocusCallback() {
 
        @Override 
        public void onAutoFocus(boolean success, Camera camera) { 
            if (success) {  //对焦成功,回调Camera.PreviewCallback 
                mCamera.setOneShotPreviewCallback(previewCallback); 
            } 
        } 
    }; 
 
 
} 
 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE