Code example for Camera

Methods: setFaceDetectionListener

0
	} 
 
	@TargetApi(14) 
	public void setFaceDetectionListener(android.hardware.Camera.FaceDetectionListener listener) {
	    if (Build.VERSION.SDK_INT >= 14) {
	        mCamera.setFaceDetectionListener(listener);
	    }  
	} 
 
	public void startFaceDetection() { 
		mCamera.startFaceDetection();
	} 
	 
	@TargetApi(14) 
	public void stopFaceDetection() { 
		mCamera.stopFaceDetection();
	} 
	 
	public interface FaceDetectionListener { 
		/** 
		 * Notify the listener of the detected faces in the preview frame.