Android APIs
Added in API level 14
Deprecated since API level 21
public static interface

Camera.FaceDetectionListener

android.hardware.Camera.FaceDetectionListener

This interface was deprecated in API level 21.
We recommend using the new android.hardware.camera2 API for new applications.

Class Overview

Callback interface for face detected in the preview frame.

Summary

Public Methods
abstract void onFaceDetection(Face[] faces, Camera camera)
Notify the listener of the detected faces in the preview frame.

Public Methods

public abstract void onFaceDetection (Face[] faces, Camera camera)

Added in API level 14

Notify the listener of the detected faces in the preview frame.

Parameters
faces Face: The detected faces in a list
camera Camera: The Camera service object