From 2bcca55ec117410a350c9e55a7e6b86f7c67727a Mon Sep 17 00:00:00 2001 From: kylin Date: Thu, 24 Jul 2025 16:01:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?master=E5=88=86=E6=94=AF=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: kylin --- api/@ohos.notificationManager.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/api/@ohos.notificationManager.d.ts b/api/@ohos.notificationManager.d.ts index 3bd2b7866f..c6fa7b3901 100644 --- a/api/@ohos.notificationManager.d.ts +++ b/api/@ohos.notificationManager.d.ts @@ -470,7 +470,7 @@ declare namespace notificationManager { * Cancels a notification with the specified ID. This API uses an asynchronous callback to return the result. * * @param { number } id - Notification ID. - * @param { AsyncCallback } callback - Callback used to return the result. If the operation is successful, err is undefined + * @param { AsyncCallback } callback - Callback used to return the result. If the operation is successful, err is undefined: * otherwise, err is an error object. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3. Parameter verification failed. @@ -3993,7 +3993,7 @@ declare namespace notificationManager { * @syscap SystemCapability.Notification.Notification * @systemapi * @since 18 - */ + */ function setDistributedEnabledBySlot(slot: SlotType, deviceType: string, enabled: boolean): Promise; /** @@ -4010,7 +4010,7 @@ declare namespace notificationManager { * @syscap SystemCapability.Notification.Notification * @systemapi * @since 18 - */ + */ function isDistributedEnabledBySlot(slot: SlotType, deviceType: string): Promise; /** @@ -4026,7 +4026,7 @@ declare namespace notificationManager { * @since 20 */ function isDistributedEnabled(deviceType: string): Promise; - + /** * Sets whether the device supports distributed notification. * @@ -4041,7 +4041,7 @@ declare namespace notificationManager { * @since 20 */ function setDistributedEnabled(enable: boolean, deviceType: string): Promise; - + /** * Get distributed device list. * @@ -4075,7 +4075,7 @@ declare namespace notificationManager { * @arkts 1.1&1.2 */ function setSilentReminderEnabled(bundle: BundleOption, enabled: boolean): Promise; - + /** * Obtains whether an application silent reminder is enable. * @@ -4095,7 +4095,7 @@ declare namespace notificationManager { * @arkts 1.1&1.2 */ function isSilentReminderEnabled(bundle: BundleOption): Promise; - + /** * Represents the state of a switch, * distinguishing system defaults from user modifications. @@ -4117,7 +4117,7 @@ declare namespace notificationManager { * @arkts 1.1&1.2 */ USER_MODIFIED_OFF = 0, - + /** * User-modified ON state, * Represents an on state that was explicitly set by the user. @@ -4128,7 +4128,7 @@ declare namespace notificationManager { * @arkts 1.1&1.2 */ USER_MODIFIED_ON = 1, - + /** * System default OFF state, * Represents the initial off state before any user modification. @@ -4139,7 +4139,7 @@ declare namespace notificationManager { * @arkts 1.1&1.2 */ SYSTEM_DEFAULT_OFF = 2, - + /** * System default ON state, * Represents the initial on state before any user modification. -- Gitee From 1d831c1790e4a34b3c449ce972fd8cd74eac5472 Mon Sep 17 00:00:00 2001 From: kylin Date: Thu, 24 Jul 2025 08:38:43 +0000 Subject: [PATCH 2/2] update api/@ohos.notificationManager.d.ts. Signed-off-by: kylin --- api/@ohos.notificationManager.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.notificationManager.d.ts b/api/@ohos.notificationManager.d.ts index c6fa7b3901..22c1f9a546 100644 --- a/api/@ohos.notificationManager.d.ts +++ b/api/@ohos.notificationManager.d.ts @@ -470,7 +470,7 @@ declare namespace notificationManager { * Cancels a notification with the specified ID. This API uses an asynchronous callback to return the result. * * @param { number } id - Notification ID. - * @param { AsyncCallback } callback - Callback used to return the result. If the operation is successful, err is undefined: + * @param { AsyncCallback } callback - Callback used to return the result. If the operation is successful, err is undefined; * otherwise, err is an error object. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. 3. Parameter verification failed. -- Gitee