一致性修改

Signed-off-by: 185******37 <zhaobaoxin1@huawei.com>
This commit is contained in:
185******37 2023-12-25 12:16:37 +00:00 committed by Gitee
parent 11c56cc957
commit c9aeb5dc3d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 20 additions and 0 deletions

View File

@ -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;

View File

@ -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;
/**