From 6c0177f362d071df87e1a46bbe84d27e9f034bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Thu, 12 Jun 2025 20:00:34 +0800 Subject: [PATCH 1/3] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- api/@ohos.window.d.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index b79a49c526..38bd564cb7 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -11543,7 +11543,21 @@ declare namespace window { * @atomicservice * @since 15 */ - setCustomDensity(density: number): void; + /** + * Sets the custom density of ability. + * + * @param { number } density - the specified custom density value. + * @param { boolean } [isNeedSync] - whether to sync the custom density to already created subwindows and system windows. + * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; + * 2. Incorrect parameter types. + * @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 } 1300005 - This window stage is abnormal. + * @syscap SystemCapability.Window.SessionManager + * @StageModelOnly + * @since 20 + */ + setCustomDensity(density: number, isNeedSync?: boolean): void; /** * Allows the application to control the time when the launch page disappears. -- Gitee From 24e4c0b1580c86d2c8205c53d45116ff6f7c17a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Mon, 16 Jun 2025 09:29:06 +0800 Subject: [PATCH 2/3] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- api/@ohos.window.d.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 38bd564cb7..ab6fdc11f0 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -1820,7 +1820,7 @@ declare namespace window { * @type { boolean } * @syscap SystemCapability.WindowManager.WindowManager.Core * @since 6 - */ + */ n /** * Whether the window is displayed in full screen mode. The default value is false. * @@ -11547,17 +11547,16 @@ declare namespace window { * Sets the custom density of ability. * * @param { number } density - the specified custom density value. - * @param { boolean } [isNeedSync] - whether to sync the custom density to already created subwindows and system windows. - * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified; - * 2. Incorrect parameter types. + * @param { boolean } [applyToSubWindow] - whether to sync the custom density to already created subwindows and system windows. * @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 } 1300005 - This window stage is abnormal. * @syscap SystemCapability.Window.SessionManager * @StageModelOnly + * @atomicservice * @since 20 */ - setCustomDensity(density: number, isNeedSync?: boolean): void; + setCustomDensity(density: number, applyToSubWindow?: boolean): void; /** * Allows the application to control the time when the launch page disappears. -- Gitee From 206907e55124e61e3399c3c00608386985dbb9b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=AE=87=E8=B1=AA?= Date: Mon, 16 Jun 2025 10:20:20 +0800 Subject: [PATCH 3/3] change1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢宇豪 --- api/@ohos.window.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index ab6fdc11f0..8364005b11 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -1820,7 +1820,7 @@ declare namespace window { * @type { boolean } * @syscap SystemCapability.WindowManager.WindowManager.Core * @since 6 - */ n + */ /** * Whether the window is displayed in full screen mode. The default value is false. * -- Gitee