diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 15c35591a109b17610c87a74c8904af3b850c127..2bbf4a56e30115c4a408f7828de1a9e064fc2a8e 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -1169,14 +1169,14 @@ declare namespace window { /** * The left of the Rect. * - * @type { number } + * @type { int } * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - left: number; + left: int; /** * The top of the Rect. @@ -1194,14 +1194,14 @@ declare namespace window { /** * The top of the Rect. * - * @type { number } + * @type { int } * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - top: number; + top: int; /** * The width of the Rect. @@ -1219,14 +1219,14 @@ declare namespace window { /** * The width of the Rect. * - * @type { number } + * @type { int } * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - width: number; + width: int; /** * The height of the Rect. @@ -1244,14 +1244,14 @@ declare namespace window { /** * The height of the Rect. * - * @type { number } + * @type { int } * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - height: number; + height: int; } /** @@ -1547,14 +1547,14 @@ declare namespace window { /** * The width of the window. * - * @type { number } + * @type { int } * @syscap SystemCapability.WindowManager.WindowManager.Core * @since 7 */ /** * The width of the window. * - * @type { number } + * @type { int } * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @since 10 @@ -1562,14 +1562,14 @@ declare namespace window { /** * The width of the window. * - * @type { number } + * @type { int } * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - width: number; + width: int; /** * The height of the window. @@ -1580,7 +1580,7 @@ declare namespace window { /** * The height of the window. * - * @type { number } + * @type { int } * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @since 10 @@ -1588,14 +1588,14 @@ declare namespace window { /** * The height of the window. * - * @type { number } + * @type { int } * @syscap SystemCapability.WindowManager.WindowManager.Core * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - height: number; + height: int; } /** @@ -2685,74 +2685,74 @@ declare namespace window { /** * The maximum width of the window. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @since 11 */ /** * The maximum width of the window. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - maxWidth?: number; + maxWidth?: int; /** * The maximum height of the window. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @since 11 */ /** * The maximum height of the window. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - maxHeight?: number; + maxHeight?: int; /** * The minimum width of the window. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @since 11 */ /** * The minimum width of the window. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - minWidth?: number; + minWidth?: int; /** * The minimum height of the window. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @since 11 */ /** * The minimum height of the window. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - minHeight?: number; + minHeight?: int; } /** @@ -2859,7 +2859,8 @@ declare namespace window { * @type { Rect } * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ rect: Rect, @@ -4456,13 +4457,13 @@ declare namespace window { /** * The display id of the screen * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Window.SessionManager * @atomicservice * @since arkts {'1.1':'15', '1.2':'20'} * @arkts 1.1&1.2 */ - displayId?: number; + displayId?: long; } /** @@ -5159,8 +5160,8 @@ declare namespace window { /** * Set the position of a window. * - * @param { number } x - Indicate the X-coordinate of the window. - * @param { number } y - Indicate the Y-coordinate of the window. + * @param { int } x - Indicate the X-coordinate of the window. + * @param { int } y - Indicate the Y-coordinate of the window. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. @@ -5172,8 +5173,8 @@ declare namespace window { /** * Set the position of a window. * - * @param { number } x - Indicate the X-coordinate of the window. - * @param { number } y - Indicate the Y-coordinate of the window. + * @param { int } x - Indicate the X-coordinate of the window. + * @param { int } y - Indicate the Y-coordinate of the window. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. @@ -5186,8 +5187,8 @@ declare namespace window { /** * Set the position of a window. * - * @param { number } x - Indicate the X-coordinate of the window. - * @param { number } y - Indicate the Y-coordinate of the window. + * @param { int } x - Indicate the X-coordinate of the window. + * @param { int } y - Indicate the Y-coordinate of the window. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. @@ -5199,13 +5200,13 @@ declare namespace window { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - moveWindowTo(x: number, y: number): Promise; + moveWindowTo(x: int, y: int): Promise; /** * Set the position of a window. * - * @param { number } x - Indicate the X-coordinate of the window. - * @param { number } y - Indicate the Y-coordinate of the window. + * @param { int } x - Indicate the X-coordinate of the window. + * @param { int } y - Indicate the Y-coordinate of the window. * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. @@ -5217,8 +5218,8 @@ declare namespace window { /** * Set the position of a window. * - * @param { number } x - Indicate the X-coordinate of the window. - * @param { number } y - Indicate the Y-coordinate of the window. + * @param { int } x - Indicate the X-coordinate of the window. + * @param { int } y - Indicate the Y-coordinate of the window. * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. @@ -5231,8 +5232,8 @@ declare namespace window { /** * Set the position of a window. * - * @param { number } x - Indicate the X-coordinate of the window. - * @param { number } y - Indicate the Y-coordinate of the window. + * @param { int } x - Indicate the X-coordinate of the window. + * @param { int } y - Indicate the Y-coordinate of the window. * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. @@ -5244,7 +5245,7 @@ declare namespace window { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - moveWindowTo(x: number, y: number, callback: AsyncCallback): void; + moveWindowTo(x: int, y: int, callback: AsyncCallback): void; /** * Move window to the position. @@ -5369,8 +5370,8 @@ declare namespace window { /** * Set the size of a window . * - * @param { number } width - Indicates the width of the window. The width should be greater than 0. - * @param { number } height - Indicates the height of the window. The height should be greater than 0. + * @param { int } width - Indicates the width of the window. The width should be greater than 0. + * @param { int } height - Indicates the height of the window. The height should be greater than 0. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -5383,8 +5384,8 @@ declare namespace window { /** * Set the size of a window . * - * @param { number } width - Indicates the width of the window. The width should be greater than 0. - * @param { number } height - Indicates the height of the window. The height should be greater than 0. + * @param { int } width - Indicates the width of the window. The width should be greater than 0. + * @param { int } height - Indicates the height of the window. The height should be greater than 0. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -5398,8 +5399,8 @@ declare namespace window { /** * Set the size of a window . * - * @param { number } width - Indicates the width of the window. The width should be greater than 0. - * @param { number } height - Indicates the height of the window. The height should be greater than 0. + * @param { int } width - Indicates the width of the window. The width should be greater than 0. + * @param { int } height - Indicates the height of the window. The height should be greater than 0. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -5412,13 +5413,13 @@ declare namespace window { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - resize(width: number, height: number): Promise; + resize(width: int, height: int): Promise; /** * Set the size of a window . * - * @param { number } width - Indicates the width of the window. The width should be greater than 0. - * @param { number } height - Indicates the height of the window. The height should be greater than 0. + * @param { int } width - Indicates the width of the window. The width should be greater than 0. + * @param { int } height - Indicates the height of the window. The height should be greater than 0. * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -5431,8 +5432,8 @@ declare namespace window { /** * Set the size of a window . * - * @param { number } width - Indicates the width of the window. The width should be greater than 0. - * @param { number } height - Indicates the height of the window. The height should be greater than 0. + * @param { int } width - Indicates the width of the window. The width should be greater than 0. + * @param { int } height - Indicates the height of the window. The height should be greater than 0. * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -5446,8 +5447,8 @@ declare namespace window { /** * Set the size of a window . * - * @param { number } width - Indicates the width of the window. The width should be greater than 0. - * @param { number } height - Indicates the height of the window. The height should be greater than 0. + * @param { int } width - Indicates the width of the window. The width should be greater than 0. + * @param { int } height - Indicates the height of the window. The height should be greater than 0. * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -5460,7 +5461,7 @@ declare namespace window { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - resize(width: number, height: number, callback: AsyncCallback): void; + resize(width: int, height: int, callback: AsyncCallback): void; /** * Set the size of a window.