未验证 提交 d1667312 编写于 作者: O openharmony_ci 提交者: Gitee

!10764 fixed some example code issue.

Merge pull request !10764 from 蒋旻洋/master
...@@ -939,7 +939,7 @@ on(type: 'error', camera:CameraDevice, callback: ErrorCallback<CameraInputError\ ...@@ -939,7 +939,7 @@ on(type: 'error', camera:CameraDevice, callback: ErrorCallback<CameraInputError\
**示例:** **示例:**
```js ```js
cameraInput.on('error', (cameraInputError) => { cameraInput.on('error', camera, (cameraInputError) => {
console.log(`Camera input error code: ${cameraInputError.code}`); console.log(`Camera input error code: ${cameraInputError.code}`);
}) })
``` ```
...@@ -1735,7 +1735,7 @@ isExposureModeSupported(aeMode: ExposureMode, callback: AsyncCallback<boolean\>) ...@@ -1735,7 +1735,7 @@ isExposureModeSupported(aeMode: ExposureMode, callback: AsyncCallback<boolean\>)
**示例:** **示例:**
```js ```js
captureSession.isExposureModeSupported(camera.ExposureMode.EXPOSURE_MODE_LOCKEN,(err) => { captureSession.isExposureModeSupported(camera.ExposureMode.EXPOSURE_MODE_LOCKED,(err) => {
if (err) { if (err) {
console.log(`Failed to check exposure mode supported ${err.message}`); console.log(`Failed to check exposure mode supported ${err.message}`);
return ; return ;
...@@ -1838,7 +1838,7 @@ setExposureMode(aeMode: ExposureMode, callback: AsyncCallback<void\>): void ...@@ -1838,7 +1838,7 @@ setExposureMode(aeMode: ExposureMode, callback: AsyncCallback<void\>): void
**示例:** **示例:**
```js ```js
captureSession.setExposureMode(camera.ExposureMode.EXPOSURE_MODE_LOCKEN,(err) => { captureSession.setExposureMode(camera.ExposureMode.EXPOSURE_MODE_LOCKED,(err) => {
if (err) { if (err) {
console.log(`Failed to set the exposure mode ${err.message}`); console.log(`Failed to set the exposure mode ${err.message}`);
return ; return ;
...@@ -2622,7 +2622,7 @@ captureSession.isVideoStabilizationModeSupported(camera.VideoStabilizationMode.O ...@@ -2622,7 +2622,7 @@ captureSession.isVideoStabilizationModeSupported(camera.VideoStabilizationMode.O
console.error(`Failed to check whether video stabilization mode supported. ${err.message}`); console.error(`Failed to check whether video stabilization mode supported. ${err.message}`);
return; return;
} }
console.log(`Callback returned with the successful execution of isVideoStabilizationModeSupported: ${status}`); console.log(`Callback returned with the successful execution of isVideoStabilizationModeSupported`);
}) })
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册