enableFaceDetection abstract method

Future<void> enableFaceDetection(
  1. bool enable
)

Enables/Disables face detection for the local user. You can call this method either before or after joining a channel. This method is for Android and iOS only. Once face detection is enabled, the SDK triggers the facePositionChanged callback to report the face information of the local user: The width and height of the local video. The position of the human face in the local video. The distance between the human face and the screen. This method needs to be called after the camera is started (for example, by calling startPreview or joinChannel).

Param enable Whether to enable face detection: true: Enable face detection. false: (Default) Disable face detection.

Implementation

Future<void> enableFaceDetection(bool enable);