diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 81b0989bd9cdaeee40d92630f1077c27ab013cbf..5713dedaec36a730ce8c7789f66a4dfd2a020183 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -9066,7 +9066,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. @@ -9079,7 +9079,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; @@ -9088,14 +9088,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. @@ -9110,7 +9111,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; @@ -9119,9 +9120,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. @@ -9191,7 +9193,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; @@ -9202,9 +9204,10 @@ 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. @@ -9238,7 +9241,7 @@ declare namespace window { /** * 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. @@ -9251,22 +9254,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