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

!11607 【锁屏】 示例代码一致性修改

Merge pull request !11607 from wangdongqi/master
...@@ -390,11 +390,8 @@ onSystemEvent(callback: Callback\<SystemEvent\>): boolean ...@@ -390,11 +390,8 @@ onSystemEvent(callback: Callback\<SystemEvent\>): boolean
**示例:** **示例:**
```js ```js
let isSuccess = screenlock.onSystemEvent((err, event)=>{ let isSuccess = screenlock.onSystemEvent((event)=>{
console.log(`onSystemEvent:callback:${event.eventType}`) console.log(`onSystemEvent:callback:${event.eventType}`)
if (err) {
console.log(`onSystemEvent callback error -> ${JSON.stringify(err)}`);
}
}); });
if (!isSuccess) { if (!isSuccess) {
console.log(`onSystemEvent result is false`) console.log(`onSystemEvent result is false`)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册