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); 
            } 
        } 
    }; 
 
 
}