From 628e6b8a007d15f36e3120311888f25cc2a638fe Mon Sep 17 00:00:00 2001 From: weishaoxiong Date: Thu, 28 Jul 2022 16:11:06 +0800 Subject: [PATCH] =?UTF-8?q?Signed-off-by:=20weishaoxiong=20=20fix:wallpaper=E9=83=A8=E4=BB=B6=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E7=9A=84=E5=AE=8C=E6=95=B4=E6=80=A7=E5=92=8C=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/application-dev/reference/apis/js-apis-wallpaper.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md b/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md index 4a8a901372..bc165fd64f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md +++ b/zh-cn/application-dev/reference/apis/js-apis-wallpaper.md @@ -530,7 +530,7 @@ getFile(wallpaperType: WallpaperType, callback: AsyncCallback<number>): vo 获取指定类型的壁纸文件。 -**需要权限**:ohos.permission.SET_WALLPAPER、ohos.permission.READ_USER_STORAGE +**需要权限**:ohos.permission.GET_WALLPAPER、ohos.permission.READ_USER_STORAGE **系统能力**: SystemCapability.MiscServices.Wallpaper @@ -559,7 +559,7 @@ getFile(wallpaperType: WallpaperType): Promise<number> 获取指定类型的壁纸文件。 -**需要权限:** ohos.permission.SET_WALLPAPER、ohos.permission.READ_USER_STORAGE +**需要权限:** ohos.permission.GET_WALLPAPER、ohos.permission.READ_USER_STORAGE **系统能力**: SystemCapability.MiscServices.Wallpaper @@ -596,6 +596,8 @@ getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback<image.Pixel **系统能力**: SystemCapability.MiscServices.Wallpaper +**系统API**:此接口为系统接口,三方应用不支持调用。 + **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -623,6 +625,8 @@ getPixelMap(wallpaperType: WallpaperType): Promise<image.PixelMap> **系统能力**: SystemCapability.MiscServices.Wallpaper +**系统API**:此接口为系统接口,三方应用不支持调用。 + **参数:** | 参数名 | 类型 | 必填 | 说明 | -- GitLab