From 3c95300d469f939de12c5b6ae81a0c85786e4772 Mon Sep 17 00:00:00 2001 From: songbao1 Date: Fri, 23 May 2025 09:13:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E1600020=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: songbao1 --- api/@ohos.notificationManager.d.ts | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/api/@ohos.notificationManager.d.ts b/api/@ohos.notificationManager.d.ts index 9b08d15431..4b89538590 100644 --- a/api/@ohos.notificationManager.d.ts +++ b/api/@ohos.notificationManager.d.ts @@ -141,10 +141,12 @@ declare namespace notificationManager { * @throws { BusinessError } 1600014 - No permission. * @throws { BusinessError } 1600015 - The current notification status does not support duplicate configurations. * @throws { BusinessError } 1600016 - The notification version for this update is too low. + * @throws { BusinessError } 1600020 - The application is not allowed to send notifications due to permission settings. * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @crossplatform - * @since 12 + * @since arkts{ ’1.1’:’12’,’1.2’:’20’} + * @arkts 1.1&1.2 */ function publish(request: NotificationRequest, callback: AsyncCallback): void; @@ -211,10 +213,12 @@ declare namespace notificationManager { * @throws { BusinessError } 1600014 - No permission. * @throws { BusinessError } 1600015 - The current notification status does not support duplicate configurations. * @throws { BusinessError } 1600016 - The notification version for this update is too low. + * @throws { BusinessError } 1600020 - The application is not allowed to send notifications due to permission settings. * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @crossplatform - * @since 12 + * @since arkts{ ’1.1’:’12’,’1.2’:’20’} + * @arkts 1.1&1.2 */ function publish(request: NotificationRequest): Promise; @@ -292,10 +296,12 @@ declare namespace notificationManager { * @throws { BusinessError } 1600014 - No permission. * @throws { BusinessError } 1600015 - The current notification status does not support duplicate configurations. * @throws { BusinessError } 1600016 - The notification version for this update is too low. + * @throws { BusinessError } 1600020 - The application is not allowed to send notifications due to permission settings. * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 18 + * @since arkts{ ’1.1’:’18’,’1.2’:’20’} + * @arkts 1.1&1.2 */ function publish(request: NotificationRequest, userId: number, callback: AsyncCallback): void; @@ -373,10 +379,12 @@ declare namespace notificationManager { * @throws { BusinessError } 1600014 - No permission. * @throws { BusinessError } 1600015 - The current notification status does not support duplicate configurations. * @throws { BusinessError } 1600016 - The notification version for this update is too low. + * @throws { BusinessError } 1600020 - The application is not allowed to send notifications due to permission settings. * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 18 + * @since arkts{ ’1.1’:’18’,’1.2’:’20’} + * @arkts 1.1&1.2 */ function publish(request: NotificationRequest, userId: number): Promise; @@ -403,10 +411,12 @@ declare namespace notificationManager { * @throws { BusinessError } 1600012 - No memory space. * @throws { BusinessError } 1600015 - The current notification status does not support duplicate configurations. * @throws { BusinessError } 1600016 - The notification version for this update is too low. + * @throws { BusinessError } 1600020 - The application is not allowed to send notifications due to permission settings. * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 9 + * @since arkts{ ’1.1’:’9’,’1.2’:’20’} + * @arkts 1.1&1.2 */ function publishAsBundle( request: NotificationRequest, @@ -438,10 +448,12 @@ declare namespace notificationManager { * @throws { BusinessError } 1600012 - No memory space. * @throws { BusinessError } 1600015 - The current notification status does not support duplicate configurations. * @throws { BusinessError } 1600016 - The notification version for this update is too low. + * @throws { BusinessError } 1600020 - The application is not allowed to send notifications due to permission settings. * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 9 + * @since arkts{ ’1.1’:’9’,’1.2’:’20’} + * @arkts 1.1&1.2 */ function publishAsBundle(request: NotificationRequest, representativeBundle: string, userId: number): Promise; @@ -467,10 +479,12 @@ declare namespace notificationManager { * @throws { BusinessError } 1600012 - No memory space. * @throws { BusinessError } 1600015 - The current notification status does not support duplicate configurations. * @throws { BusinessError } 1600016 - The notification version for this update is too low. + * @throws { BusinessError } 1600020 - The application is not allowed to send notifications due to permission settings. * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since 12 + * @since arkts{ ’1.1’:’12’,’1.2’:’20’} + * @arkts 1.1&1.2 */ function publishAsBundle(representativeBundle: BundleOption, request: NotificationRequest): Promise; -- Gitee From 0a8c1017c5a03869ca60d7343d4501b3d9cb5f1a Mon Sep 17 00:00:00 2001 From: songbao1 Date: Fri, 23 May 2025 14:41:24 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E1600020=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: songbao1 --- api/@ohos.notificationManager.d.ts | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/api/@ohos.notificationManager.d.ts b/api/@ohos.notificationManager.d.ts index 4b89538590..6b36334e27 100644 --- a/api/@ohos.notificationManager.d.ts +++ b/api/@ohos.notificationManager.d.ts @@ -145,8 +145,7 @@ declare namespace notificationManager { * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @crossplatform - * @since arkts{ ’1.1’:’12’,’1.2’:’20’} - * @arkts 1.1&1.2 + * @since 12 */ function publish(request: NotificationRequest, callback: AsyncCallback): void; @@ -217,8 +216,7 @@ declare namespace notificationManager { * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @crossplatform - * @since arkts{ ’1.1’:’12’,’1.2’:’20’} - * @arkts 1.1&1.2 + * @since 12 */ function publish(request: NotificationRequest): Promise; @@ -300,8 +298,7 @@ declare namespace notificationManager { * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since arkts{ ’1.1’:’18’,’1.2’:’20’} - * @arkts 1.1&1.2 + * @since 18 */ function publish(request: NotificationRequest, userId: number, callback: AsyncCallback): void; @@ -383,8 +380,7 @@ declare namespace notificationManager { * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since arkts{ ’1.1’:’18’,’1.2’:’20’} - * @arkts 1.1&1.2 + * @since 18 */ function publish(request: NotificationRequest, userId: number): Promise; @@ -415,8 +411,7 @@ declare namespace notificationManager { * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since arkts{ ’1.1’:’9’,’1.2’:’20’} - * @arkts 1.1&1.2 + * @since 9 */ function publishAsBundle( request: NotificationRequest, @@ -452,8 +447,7 @@ declare namespace notificationManager { * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since arkts{ ’1.1’:’9’,’1.2’:’20’} - * @arkts 1.1&1.2 + * @since 9 */ function publishAsBundle(request: NotificationRequest, representativeBundle: string, userId: number): Promise; @@ -483,8 +477,7 @@ declare namespace notificationManager { * @throws { BusinessError } 2300007 - Network unreachable. * @syscap SystemCapability.Notification.Notification * @systemapi - * @since arkts{ ’1.1’:’12’,’1.2’:’20’} - * @arkts 1.1&1.2 + * @since 12 */ function publishAsBundle(representativeBundle: BundleOption, request: NotificationRequest): Promise; -- Gitee