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

!19207 翻译完成:18851【轻量级 PR】js-apis-inner-application-applicationStateObserver.md

Merge pull request !19207 from wusongqing/TR18851
......@@ -43,5 +43,5 @@ let applicationStateObserver = {
console.log('onProcessStateChanged onProcessStateChanged: ${JSON.stringify(processData)}');
}
};
let observerCode = appManager.registerApplicationStateObserver(applicationStateObserver);
let observerCode = appManager.on('applicationState', applicationStateObserver);
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册