diff --git a/api/@ohos.wallpaper.d.ts b/api/@ohos.wallpaper.d.ts index 96f958acb7b1064b4945b4a7ebf7792d5820770a..c785bae7f1134173123842a9d2c27bd463f31cca 100644 --- a/api/@ohos.wallpaper.d.ts +++ b/api/@ohos.wallpaper.d.ts @@ -59,6 +59,13 @@ declare namespace wallpaper { * @return the file descriptor. * @since 8 */ + /** + * Obtains a file of the wallpaper of the specified type. + * @param wallpaperType Indicates the wallpaper type. + * @permission ohos.permission.GET_WALLPAPER. + * @return the file descriptor. + * @since 9 + */ function getFile(wallpaperType: WallpaperType, callback: AsyncCallback): void; function getFile(wallpaperType: WallpaperType): Promise; @@ -112,7 +119,6 @@ declare namespace wallpaper { * @param wallpaperType Indicates the wallpaper type. * @return the default pixel map. * @permission ohos.permission.GET_WALLPAPER - * @permission ohos.permission.READ_USER_STORAGE * @systemapi Hide this for inner system use. */ function getPixelMap(wallpaperType: WallpaperType, callback: AsyncCallback): void;