Added in API level 14
Deprecated in API level 21

FaceDetectionListener

interface FaceDetectionListener
android.hardware.Camera.FaceDetectionListener

Callback interface for face detected in the preview frame.

Summary

Public methods
abstract Unit
onFaceDetection(faces: Array<Camera.Face!>!, camera: Camera!)

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

Public methods

onFaceDetection

Added in API level 14
abstract fun onFaceDetection(
    faces: Array<Camera.Face!>!,
    camera: Camera!
): Unit

Deprecated: Deprecated in Java.

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

Parameters
faces Array<Camera.Face!>!: The detected faces in a list
camera Camera!: The Camera service object