From b58a650c263a41a5bf5e6d47a4669b94df33c9fc Mon Sep 17 00:00:00 2001 From: jiangminyang Date: Fri, 28 Oct 2022 09:13:34 +0800 Subject: [PATCH] fixed founction isMirrorSupported example. Signed-off-by: jiangminyang --- zh-cn/application-dev/reference/apis/js-apis-camera.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-camera.md b/zh-cn/application-dev/reference/apis/js-apis-camera.md index 23475b92e0..fcb1d7492d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-camera.md +++ b/zh-cn/application-dev/reference/apis/js-apis-camera.md @@ -3303,7 +3303,7 @@ isMirrorSupported(callback: AsyncCallback): void **示例:** ```js -captureSession.isMirrorSupported((err, isSupported) => { +photoOutput.isMirrorSupported((err, isSupported) => { if (err) { console.error(`Failed to check mirror is supported ${err.message}`); return; @@ -3329,7 +3329,7 @@ isMirrorSupported(): Promise **示例:** ```js -captureSession.isMirrorSupported().then((isSupported) => { +photoOutput.isMirrorSupported().then((isSupported) => { console.log(`Promise returned with mirror supported: ${isSupported}`); }) ``` -- GitLab