提交 b9f2e984 编写于 作者: Z zhangchao 提交者: 章超123

fixed 8669c160 from https://gitee.com/zc2468/docs/pulls/23915

【cameraFramework】Arkts整改
Signed-off-by: Nzhangchao <zhangchao338@huawei.com>
上级 278d3bd7
......@@ -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\<image.PixelMap>): void
```ts
function unregisterQuickThumbnail(photoOutput: camera.PhotoOutput): void {
this.photoOutput.off('quickThumbnail');
photoOutput.off('quickThumbnail');
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册