diff --git a/api/@ohos.wallpaper.d.ts b/api/@ohos.wallpaper.d.ts index 300cd16ce5fbb431fb98789f6f8d42746cffe1e6..a32d3b3c5cdbe54780e91deb36bd00a5c53e239d 100644 --- a/api/@ohos.wallpaper.d.ts +++ b/api/@ohos.wallpaper.d.ts @@ -34,7 +34,8 @@ declare namespace wallpaper { * * @typedef RgbaColor * @syscap SystemCapability.MiscServices.Wallpaper - * @since 7 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 * @deprecated since 9 */ interface RgbaColor { @@ -43,7 +44,8 @@ declare namespace wallpaper { * * @type { number } * @syscap SystemCapability.MiscServices.Wallpaper - * @since 7 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 * @deprecated since 9 */ red: number; @@ -52,7 +54,8 @@ declare namespace wallpaper { * * @type { number } * @syscap SystemCapability.MiscServices.Wallpaper - * @since 7 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 * @deprecated since 9 */ green: number; @@ -61,7 +64,8 @@ declare namespace wallpaper { * * @type { number } * @syscap SystemCapability.MiscServices.Wallpaper - * @since 7 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 * @deprecated since 9 */ blue: number; @@ -70,7 +74,8 @@ declare namespace wallpaper { * * @type { number } * @syscap SystemCapability.MiscServices.Wallpaper - * @since 7 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 * @deprecated since 9 */ alpha: number; @@ -88,14 +93,16 @@ declare namespace wallpaper { * Indicates the home screen wallpaper. * * @syscap SystemCapability.MiscServices.Wallpaper - * @since 7 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ WALLPAPER_SYSTEM, /** * Indicates the lock screen wallpaper. * * @syscap SystemCapability.MiscServices.Wallpaper - * @since 7 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ WALLPAPER_LOCKSCREEN } @@ -206,7 +213,8 @@ declare namespace wallpaper { * @enum { number } WallpaperResourceType * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ enum WallpaperResourceType { /** @@ -214,7 +222,8 @@ declare namespace wallpaper { * * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ DEFAULT, /** @@ -222,7 +231,8 @@ declare namespace wallpaper { * * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ PICTURE, /** @@ -230,7 +240,8 @@ declare namespace wallpaper { * * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ VIDEO, /** @@ -238,7 +249,8 @@ declare namespace wallpaper { * * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ PACKAGE } @@ -275,7 +287,8 @@ declare namespace wallpaper { * @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API. * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function getColorsSync(wallpaperType: WallpaperType): Array; @@ -356,7 +369,8 @@ declare namespace wallpaper { * @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API. * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function getMinHeightSync(): number; @@ -365,7 +379,8 @@ declare namespace wallpaper { * * @param { AsyncCallback } callback - the callback of getMinWidth. * @syscap SystemCapability.MiscServices.Wallpaper - * @since 7 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 * @deprecated since 9 */ function getMinWidth(callback: AsyncCallback): void; @@ -471,7 +486,8 @@ declare namespace wallpaper { * @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API. * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function restore(wallpaperType: WallpaperType, callback: AsyncCallback): void; @@ -487,7 +503,8 @@ declare namespace wallpaper { * @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API. * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function restore(wallpaperType: WallpaperType): Promise; @@ -534,7 +551,8 @@ declare namespace wallpaper { * @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API. * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function setImage(source: string | image.PixelMap, wallpaperType: WallpaperType, callback: AsyncCallback): void; @@ -551,7 +569,8 @@ declare namespace wallpaper { * @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API. * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function setImage(source: string | image.PixelMap, wallpaperType: WallpaperType): Promise; @@ -626,7 +645,8 @@ declare namespace wallpaper { * @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API. * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function setVideo(source: string, wallpaperType: WallpaperType, callback: AsyncCallback): void; @@ -643,7 +663,8 @@ declare namespace wallpaper { * @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API. * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function setVideo(source: string, wallpaperType: WallpaperType): Promise; @@ -660,7 +681,8 @@ declare namespace wallpaper { * @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API. * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function setCustomWallpaper(source: string, wallpaperType: WallpaperType, callback: AsyncCallback): void; @@ -677,7 +699,8 @@ declare namespace wallpaper { * @throws { BusinessError } 202 - permission verification failed, application which is not a system application uses system API. * @syscap SystemCapability.MiscServices.Wallpaper * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function setCustomWallpaper(source: string, wallpaperType: WallpaperType): Promise;