From 423f4f0ff658b6002def467378f3a0370299cfd4 Mon Sep 17 00:00:00 2001 From: cq_0418 Date: Wed, 2 Jul 2025 15:31:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96setRelativePositionToParentWi?= =?UTF-8?q?ndowEnabled=E6=8E=A5=E5=8F=A3=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cq_0418 --- api/@ohos.window.d.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 8b1575b26f..a1d8ff6d7f 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -5571,15 +5571,13 @@ declare namespace window { * @param { number } offsetX - The x-axis offset between the anchor point of the first level sub window and the anchor point of the main window. * @param { number } offsetY - The y-axis offset between the anchor point of the first level sub window and the anchor point of the main window. * @returns { Promise } Promise that returns no value. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. * @throws { BusinessError } 801 - Capability not supported. * Function setRelativePositionToParentWindowEnabled can not work correctly due to limited device capabilities. * @throws { BusinessError } 1300002 - This window state is abnormal. * @throws { BusinessError } 1300003 - This window manager service works abnormally. * @throws { BusinessError } 1300004 - Unauthorized operation. + * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Invalid parameter range. * @syscap SystemCapability.Window.SessionManager - * @atomicservice * @since 20 */ setRelativePositionToParentWindowEnabled(enabled: boolean, anchor?: WindowAnchor, offsetX?: number, offsetY?: number): Promise; -- Gitee