提交 b1763462 编写于 作者: M mali

Correction of writing errors in camera data

Signed-off-by: Nmali <mali81@huawei.com>
上级 e49b1edc
......@@ -194,7 +194,7 @@ getSupportedOutputCapability(camera:CameraDevice, callback: AsyncCallback<Camera
**示例:**
```js
cameraManager.getSupportedOutputCapability(cameradevice (err, cameras) => {
cameraManager.getSupportedOutputCapability(cameradevice (err, CameraOutputCapability) => {
if (err) {
console.error(`Failed to get the cameras. ${err.message}`);
return;
......@@ -728,8 +728,8 @@ cameraManager.on('cameraStatus', (err, cameraStatusInfo) => {
```js
async function getCameraInfo("cameraId") {
let cameraManager = await camera.getCameraManager(context);
let cameras = await cameraManager.getSupportedCameras();
let cameraManager = camera.getCameraManager(context);
let cameras = cameraManager.getSupportedCameras();
let cameraObj = cameras[0];
let cameraId = cameraObj.cameraId;
let cameraPosition = cameraObj.cameraPosition;
......@@ -1005,7 +1005,7 @@ cameraInput.on('error', (cameraInputError) => {
| -------------------------- | ---- | ------------ |
| FOCUS_MODE_MANUAL | 0 | 手动对焦。 |
| FOCUS_MODE_CONTINUOUS_AUTO | 1 | 连续自动对焦。 |
| FOCUS_MODE_AUTO | 2 | 自动焦。 |
| FOCUS_MODE_AUTO | 2 | 自动焦。 |
| FOCUS_MODE_LOCKED | 3 | 对焦锁定。 |
## FocusState
......@@ -2019,8 +2019,8 @@ getExposureBiasRange(): Promise<Array<number\>\>
**示例:**
```js
captureSession.isExposureModeSupported(camera.ExposureMode.EXPOSURE_MODE_LOCKED).then((isSupported) => {
console.log(`Promise returned with exposure mode supported : ${isSupported}`);
captureSession.getExposureBiasRange().then((biasRangeArray) => {
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.
先完成此消息的编辑!
想要评论请 注册