Skip to content

Commit

Permalink
fix: enableFaceDetection not working
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Jun 7, 2023
1 parent 0ef5050 commit 16051e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Agora-RTC-JS/common/RtcEngine.native.ts
Expand Up @@ -2857,8 +2857,8 @@ export default class RtcEngine implements RtcEngineInterface {
* - `true`: Enable face detection.
* - `false`: (Default) Disable face detection.
*/
enableFaceDetection(enable: boolean): Promise<void> {
return RtcEngine._callMethod('enableFaceDetection', { enable });
enableFaceDetection(enabled: boolean): Promise<void> {
return RtcEngine._callMethod('enableFaceDetection', { enabled });
}

/**
Expand Down Expand Up @@ -4342,7 +4342,7 @@ interface RtcVideoInterface {
options: BeautyOptions
): Promise<void>;

enableRemoteSuperResolution(uid: number, enable: boolean): Promise<void>;
enableRemoteSuperResolution(uid: number, enabled: boolean): Promise<void>;

setVideoDenoiserOptions(
enabled: boolean,
Expand Down Expand Up @@ -4730,7 +4730,7 @@ interface RtcCameraInterface {
positionYinView: number
): Promise<void>;

enableFaceDetection(enable: boolean): Promise<void>;
enableFaceDetection(enabled: boolean): Promise<void>;

setCameraTorchOn(isOn: boolean): Promise<void>;

Expand Down

0 comments on commit 16051e2

Please sign in to comment.