diff --git a/api/@ohos.notificationSubscribe.d.ts b/api/@ohos.notificationSubscribe.d.ts index d408d34c88..490aa00c29 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 4aaf79e9ec..4cfe8226b4 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; /**