diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 5d2fb3896d26b3e64cb327711ae6423b3d12c652..e4cbdcdbdef60a066df4a24aa976887ddf708f30 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -3657,8 +3657,8 @@ declare namespace window { * Transfers an input event from one window to another within the same application, particularly in split-window scenarios. * It takes effect only for the main window and its child windows on 2-in-1 devices. * - * @param { number } sourceWindowId - ID of the source window. You are advised to call getWindowProperties() to obtain the window ID. - * @param { number } targetWindowId - ID of the target window. You are advised to call getWindowProperties() to obtain the window ID. + * @param { int } sourceWindowId - ID of the source window. You are advised to call getWindowProperties() to obtain the window ID. + * @param { int } targetWindowId - ID of the target window. You are advised to call getWindowProperties() to obtain the window ID. * @returns { Promise } - Promise that returns no value. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. @@ -3668,9 +3668,10 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 15 + * @since arkts {'1.1':'15', '1.2':'20'} + * @arkts 1.1&1.2 */ - function shiftAppWindowPointerEvent(sourceWindowId: number, targetWindowId: number): Promise; + function shiftAppWindowPointerEvent(sourceWindowId: int, targetWindowId: int): Promise; /** * Shift window touch event within the same application. And the window type contains only main window and subwindow. @@ -7822,7 +7823,8 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ setDialogBackGestureEnabled(enabled: boolean): Promise; @@ -9070,7 +9072,7 @@ declare namespace window { /** * Sets the window blur radius. * - * @param { number } radius the blur radius. + * @param { double } radius the blur radius. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -9083,7 +9085,7 @@ declare namespace window { /** * Sets the window blur radius. * - * @param { number } radius the blur radius. + * @param { double } radius the blur radius. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -9092,14 +9094,15 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - setBlur(radius: number): void; + setBlur(radius: double): void; /** * Sets the window backdrop blur radius. * - * @param { number } radius the blur radius. + * @param { double } radius the blur radius. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -9114,7 +9117,7 @@ declare namespace window { * The window background refers to the lower-layer area covered by the window, which is the same as the window size. * To make the blur effect visible, you must set the window background transparent by calling setWindowBackgroundColor. * - * @param { number } radius the blur radius. + * @param { double } radius the blur radius. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -9123,9 +9126,10 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - setBackdropBlur(radius: number): void; + setBackdropBlur(radius: double): void; /** * Sets the window backdrop blur style. @@ -9195,7 +9199,7 @@ declare namespace window { /** * Sets the blur radius of the shadow on the edges of a child window or floating window. * - * @param { number } radius - Radius of the shadow, measured in px. + * @param { double } radius - Radius of the shadow, measured in px. * The value is a floating point number greater than or equal to 0.0, * and the value 0.0 means that the shadow is disabled for the window borders. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; @@ -9206,14 +9210,15 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 17 + * @since arkts {'1.1':'17', '1.2':'20'} + * @arkts 1.1&1.2 */ - setWindowShadowRadius(radius: number): void; + setWindowShadowRadius(radius: double): void; /** * Sets corner radius. * - * @param { number } cornerRadius the corner radius. + * @param { double } cornerRadius the corner radius. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -9226,7 +9231,7 @@ declare namespace window { /** * Sets the radius of the rounded corners for this window. * - * @param { number } cornerRadius the corner radius. + * @param { double } cornerRadius the corner radius. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; @@ -9235,14 +9240,15 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.WindowManager.WindowManager.Core * @systemapi Hide this for inner system use. - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - setCornerRadius(cornerRadius: number): void; + setCornerRadius(cornerRadius: double): void; /** * Sets the radius of the rounded corners for a child window or floating window. * - * @param { number } cornerRadius - Radius of the rounded corners, measured in vp. + * @param { double } cornerRadius - Radius of the rounded corners, measured in vp. * The value is a floating point number greater than or equal to 0.0. * The value 0.0 means that the window does not use rounded corners. * @returns { Promise } Promise that returns no value. @@ -9255,22 +9261,24 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 17 + * @since arkts {'1.1':'17', '1.2':'20'} + * @arkts 1.1&1.2 */ - setWindowCornerRadius(cornerRadius: number): Promise; + setWindowCornerRadius(cornerRadius: double): Promise; /** * Obtains the radius of rounded corners of a child window or floating window. * - * @returns { number } - Radius of the rounded corner of the child window or floating window, measured in vp. + * @returns { double } - Radius of the rounded corner of the child window or floating window, measured in vp. * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 17 + * @since arkts {'1.1':'17', '1.2':'20'} + * @arkts 1.1&1.2 */ - getWindowCornerRadius(): number; + getWindowCornerRadius(): double; /** * Raise app sub window to app top @@ -10095,7 +10103,8 @@ declare namespace window { * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @syscap SystemCapability.Window.SessionManager * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ setTouchableAreas(rects: Array): void; @@ -10377,7 +10386,8 @@ declare namespace window { * @throws { BusinessError } 1300004 - Unauthorized operation. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ setWindowMask(windowMask: Array>): Promise; @@ -10679,7 +10689,7 @@ declare namespace window { /** * Set the parent window of the child window. * - * @param { number } windowId - Indicates parent window id. + * @param { int } windowId - Indicates parent window id. * @returns { Promise } Promise that returns no value. * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. @@ -10688,9 +10698,10 @@ declare namespace window { * @throws { BusinessError } 1300009 - The parent window is invaild. * @syscap SystemCapability.Window.SessionManager * @atomicservice - * @since 19 + * @since arkts {'1.1':'19', '1.2':'20'} + * @arkts 1.1&1.2 */ - setParentWindow(windowId: number): Promise; + setParentWindow(windowId: int): Promise; /** * Get the parent window.