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

!11485 Correction of writing errors in camera data

Merge pull request !11485 from 马利/master
...@@ -194,7 +194,7 @@ getSupportedOutputCapability(camera:CameraDevice, callback: AsyncCallback<Camera ...@@ -194,7 +194,7 @@ getSupportedOutputCapability(camera:CameraDevice, callback: AsyncCallback<Camera
**示例:** **示例:**
```js ```js
cameraManager.getSupportedOutputCapability(cameradevice, (err, cameras) => { cameraManager.getSupportedOutputCapability(cameradevice, (err, CameraOutputCapability) => {
if (err) { if (err) {
console.error(`Failed to get the cameras. ${err.message}`); console.error(`Failed to get the cameras. ${err.message}`);
return; return;
...@@ -250,7 +250,7 @@ isCameraMuted(): boolean ...@@ -250,7 +250,7 @@ isCameraMuted(): boolean
**示例:** **示例:**
```js ```js
let ismuted = await cameraManager.isCameraMuted(); let ismuted = cameraManager.isCameraMuted();
``` ```
### isCameraMuteSupported ### isCameraMuteSupported
...@@ -270,7 +270,7 @@ isCameraMuteSupported(): boolean ...@@ -270,7 +270,7 @@ isCameraMuteSupported(): boolean
**示例:** **示例:**
```js ```js
let ismutesuppotred = await cameraManager.isCameraMuteSupported(); let ismutesuppotred = cameraManager.isCameraMuteSupported();
``` ```
### muteCamera ### muteCamera
...@@ -1092,7 +1092,7 @@ cameraInput.on('error', camera, (cameraInputError) => { ...@@ -1092,7 +1092,7 @@ cameraInput.on('error', camera, (cameraInputError) => {
| -------------------------- | ---- | ------------ | | -------------------------- | ---- | ------------ |
| FOCUS_MODE_MANUAL | 0 | 手动对焦。 | | FOCUS_MODE_MANUAL | 0 | 手动对焦。 |
| FOCUS_MODE_CONTINUOUS_AUTO | 1 | 连续自动对焦。 | | FOCUS_MODE_CONTINUOUS_AUTO | 1 | 连续自动对焦。 |
| FOCUS_MODE_AUTO | 2 | 自动焦。 | | FOCUS_MODE_AUTO | 2 | 自动焦。 |
| FOCUS_MODE_LOCKED | 3 | 对焦锁定。 | | FOCUS_MODE_LOCKED | 3 | 对焦锁定。 |
## FocusState ## FocusState
...@@ -2106,8 +2106,8 @@ getExposureBiasRange(): Promise<Array<number\>\> ...@@ -2106,8 +2106,8 @@ getExposureBiasRange(): Promise<Array<number\>\>
**示例:** **示例:**
```js ```js
captureSession.isExposureModeSupported(camera.ExposureMode.EXPOSURE_MODE_LOCKED).then((isSupported) => { captureSession.getExposureBiasRange().then((biasRangeArray) => {
console.log(`Promise returned with exposure mode supported : ${isSupported}`); console.log('Promise returned with the array of compenstation range: ' + JSON.stringify(biasRangeArray));
}) })
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册