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

!23987 update stationary guidelines

Merge pull request !23987 from 周澎亮/master
......@@ -47,6 +47,7 @@
```ts
import stationary from '@ohos.stationary';
import { BusinessError } from '@ohos.base';
let reportLatencyNs = 1000000000;
try {
stationary.on('still', stationary.ActivityEvent.ENTER, reportLatencyNs, (data) => {
......@@ -62,6 +63,7 @@
```ts
import stationary from '@ohos.stationary';
import { BusinessError } from '@ohos.base';
try {
stationary.once('still', (data) => {
console.log('data='+ JSON.stringify(data));
......@@ -76,6 +78,7 @@
```ts
import stationary from '@ohos.stationary';
import { BusinessError } from '@ohos.base';
try {
stationary.off('still', stationary.ActivityEvent.ENTER, (data) => {
console.log('data='+ JSON.stringify(data));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册