From b9f2e9843649d2c5d9387f9363594dcc4e619335 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Tue, 5 Sep 2023 15:29:12 +0800 Subject: [PATCH] =?UTF-8?q?fixed=208669c16=20from=20https://gitee.com/zc24?= =?UTF-8?q?68/docs/pulls/23915=20=E3=80=90cameraFramework=E3=80=91Arkts?= =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangchao --- 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 fc1ec8a455..4cff2857d5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-camera.md +++ b/zh-cn/application-dev/reference/apis/js-apis-camera.md @@ -3925,7 +3925,7 @@ async function preview(context: featureAbility.Context, cameraInfo: camera.Camer const cameraInput: camera.CameraInput = cameraManager.createCameraInput(cameraInfo) const previewOutput: camera.PreviewOutput = await cameraManager.createDeferredPreviewOutput(previewProfile); const photoOutput: camera.PhotoOutput = cameraManager.createPhotoOutput(photoProfile); - const session: camera.CaptureSession = await this.mCameraManager.createCaptureSession(); + const session: camera.CaptureSession = await cameraManager.createCaptureSession(); session.beginConfig(); session.addInput(cameraInput); session.addOutput(previewOutput); @@ -4666,7 +4666,7 @@ off(type: 'quickThumbnail', callback?: AsyncCallback\): void ```ts function unregisterQuickThumbnail(photoOutput: camera.PhotoOutput): void { - this.photoOutput.off('quickThumbnail'); + photoOutput.off('quickThumbnail'); } ``` -- GitLab