From c9aeb5dc3d4fb09e727a205ccb8c378f43fc56a5 Mon Sep 17 00:00:00 2001 From: 185******37 Date: Mon, 25 Dec 2023 12:16:37 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E8=87=B4=E6=80=A7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 185******37 --- api/@ohos.notificationSubscribe.d.ts | 10 ++++++++++ api/notification/notificationRequest.d.ts | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/api/@ohos.notificationSubscribe.d.ts b/api/@ohos.notificationSubscribe.d.ts index d408d34c8..490aa00c2 100644 --- a/api/@ohos.notificationSubscribe.d.ts +++ b/api/@ohos.notificationSubscribe.d.ts @@ -24,6 +24,7 @@ import { NotificationSubscribeInfo as _NotificationSubscribeInfo } from './notif import { NotificationSubscriber as _NotificationSubscriber } from './notification/notificationSubscriber'; import { SubscribeCallbackData as _SubscribeCallbackData } from './notification/notificationSubscriber'; import { EnabledNotificationCallbackData as _EnabledNotificationCallbackData } from './notification/notificationSubscriber'; +import { BadgeNumberCallbackData as _BadgeNumberCallbackData } from './notification/notificationSubscriber'; /** * @namespace notificationSubscribe @@ -473,6 +474,15 @@ declare namespace notificationSubscribe { * @since 9 */ export type EnabledNotificationCallbackData = _EnabledNotificationCallbackData; + + /** + * Describes the badge number of the application has changed. + * + * @syscap SystemCapability.Notification.Notification + * @systemapi + * @since 11 + */ + export type BadgeNumberCallbackData = _BadgeNumberCallbackData; } export default notificationSubscribe; diff --git a/api/notification/notificationRequest.d.ts b/api/notification/notificationRequest.d.ts index 4aaf79e9e..4cfe8226b 100644 --- a/api/notification/notificationRequest.d.ts +++ b/api/notification/notificationRequest.d.ts @@ -329,6 +329,16 @@ export interface NotificationRequest { * @systemapi * @since 8 */ + /** + * Whether the notification can be remove. + * + * @permission ohos.permission.SET_UNREMOVABLE_NOTIFICATION + * @type { ?boolean } + * @default true + * @syscap SystemCapability.Notification.Notification + * @systemapi + * @since 11 + */ isRemoveAllowed?: boolean; /**