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.
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
onFaceDetection
public abstract void onFaceDetection (Face[] faces,
Camera camera)
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]