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

!6832 【misc软件服务子系统】screenlock\wallpapaer 部件示例代码修改

Merge pull request !6832 from wangdongqi/master
......@@ -302,7 +302,7 @@ sendScreenLockEvent(event: String, parameter: number): Promise<boolean>
**示例**
```js
screenlock.sendScreenLockEvent('unlockScreenResult', 0).then((err, result) => {
screenlock.sendScreenLockEvent('unlockScreenResult', 0).then((result) => {
console.log('sending result:' + result);
});
```
......@@ -638,7 +638,7 @@ getPixelMap(wallpaperType: WallpaperType): Promise&lt;image.PixelMap&gt;
**示例:**
```js
wallpaper.getPixelMap(WALLPAPER_SYSTEM).then((data) => {
wallpaper.getPixelMap(wallpaper.WallpaperType.WALLPAPER_SYSTEM).then((data) => {
console.info('wallpaperXTS ===> testGetPixelMapPromiseSystem data : ' + data);
console.info('wallpaperXTS ===> testGetPixelMapPromiseSystem data : ' + JSON.stringify(data));
}).catch((err) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册