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

!11123 fixed founction isMirrorSupported example.

Merge pull request !11123 from 蒋旻洋/master
......@@ -3303,7 +3303,7 @@ isMirrorSupported(callback: AsyncCallback<boolean\>): void
**示例:**
```js
captureSession.isMirrorSupported((err, isSupported) => {
photoOutput.isMirrorSupported((err, isSupported) => {
if (err) {
console.error(`Failed to check mirror is supported ${err.message}`);
return;
......@@ -3329,7 +3329,7 @@ isMirrorSupported(): Promise<boolean\>
**示例:**
```js
captureSession.isMirrorSupported().then((isSupported) => {
photoOutput.isMirrorSupported().then((isSupported) => {
console.log(`Promise returned with mirror supported: ${isSupported}`);
})
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册