| 操作 | 旧版本 | 新版本 | d.ts文件 |
|---|---|---|---|
| 新增API | NA | 类名:global; API声明:declare namespace notificationManager 差异内容:declare namespace notificationManager |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function publish(request: NotificationRequest, callback: AsyncCallback<void>): void; 差异内容:function publish(request: NotificationRequest, callback: AsyncCallback<void>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function publish(request: NotificationRequest): Promise<void>; 差异内容:function publish(request: NotificationRequest): Promise<void>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function cancel(id: number, callback: AsyncCallback<void>): void; 差异内容:function cancel(id: number, callback: AsyncCallback<void>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function cancel(id: number, label: string, callback: AsyncCallback<void>): void; 差异内容:function cancel(id: number, label: string, callback: AsyncCallback<void>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function cancel(id: number, label?: string): Promise<void>; 差异内容:function cancel(id: number, label?: string): Promise<void>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function cancelAll(callback: AsyncCallback<void>): void; 差异内容:function cancelAll(callback: AsyncCallback<void>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function cancelAll(): Promise<void>; 差异内容:function cancelAll(): Promise<void>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function addSlot(type: SlotType, callback: AsyncCallback<void>): void; 差异内容:function addSlot(type: SlotType, callback: AsyncCallback<void>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function addSlot(type: SlotType): Promise<void>; 差异内容:function addSlot(type: SlotType): Promise<void>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function getSlot(slotType: SlotType, callback: AsyncCallback<NotificationSlot>): void; 差异内容:function getSlot(slotType: SlotType, callback: AsyncCallback<NotificationSlot>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function getSlot(slotType: SlotType): Promise<NotificationSlot>; 差异内容:function getSlot(slotType: SlotType): Promise<NotificationSlot>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function getSlots(callback: AsyncCallback<Array<NotificationSlot>>): void; 差异内容:function getSlots(callback: AsyncCallback<Array<NotificationSlot>>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function getSlots(): Promise<Array<NotificationSlot>>; 差异内容:function getSlots(): Promise<Array<NotificationSlot>>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function removeSlot(slotType: SlotType, callback: AsyncCallback<void>): void; 差异内容:function removeSlot(slotType: SlotType, callback: AsyncCallback<void>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function removeSlot(slotType: SlotType): Promise<void>; 差异内容:function removeSlot(slotType: SlotType): Promise<void>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function removeAllSlots(callback: AsyncCallback<void>): void; 差异内容:function removeAllSlots(callback: AsyncCallback<void>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function removeAllSlots(): Promise<void>; 差异内容:function removeAllSlots(): Promise<void>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function isNotificationEnabled(callback: AsyncCallback<boolean>): void; 差异内容:function isNotificationEnabled(callback: AsyncCallback<boolean>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function isNotificationEnabled(): Promise<boolean>; 差异内容:function isNotificationEnabled(): Promise<boolean>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function getActiveNotificationCount(callback: AsyncCallback<number>): void; 差异内容:function getActiveNotificationCount(callback: AsyncCallback<number>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function getActiveNotificationCount(): Promise<number>; 差异内容:function getActiveNotificationCount(): Promise<number>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function getActiveNotifications(callback: AsyncCallback<Array<NotificationRequest>>): void; 差异内容:function getActiveNotifications(callback: AsyncCallback<Array<NotificationRequest>>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function getActiveNotifications(): Promise<Array<NotificationRequest>>; 差异内容:function getActiveNotifications(): Promise<Array<NotificationRequest>>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function cancelGroup(groupName: string, callback: AsyncCallback<void>): void; 差异内容:function cancelGroup(groupName: string, callback: AsyncCallback<void>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function cancelGroup(groupName: string): Promise<void>; 差异内容:function cancelGroup(groupName: string): Promise<void>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function isSupportTemplate(templateName: string, callback: AsyncCallback<boolean>): void; 差异内容:function isSupportTemplate(templateName: string, callback: AsyncCallback<boolean>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function isSupportTemplate(templateName: string): Promise<boolean>; 差异内容:function isSupportTemplate(templateName: string): Promise<boolean>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function requestEnableNotification(callback: AsyncCallback<void>): void; 差异内容:function requestEnableNotification(callback: AsyncCallback<void>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function requestEnableNotification(context: UIAbilityContext, callback: AsyncCallback<void>): void; 差异内容:function requestEnableNotification(context: UIAbilityContext, callback: AsyncCallback<void>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function requestEnableNotification(): Promise<void>; 差异内容:function requestEnableNotification(): Promise<void>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function requestEnableNotification(context: UIAbilityContext): Promise<void>; 差异内容:function requestEnableNotification(context: UIAbilityContext): Promise<void>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function isDistributedEnabled(callback: AsyncCallback<boolean>): void; 差异内容:function isDistributedEnabled(callback: AsyncCallback<boolean>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function isDistributedEnabled(): Promise<boolean>; 差异内容:function isDistributedEnabled(): Promise<boolean>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function setBadgeNumber(badgeNumber: number, callback: AsyncCallback<void>): void; 差异内容:function setBadgeNumber(badgeNumber: number, callback: AsyncCallback<void>): void; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:function setBadgeNumber(badgeNumber: number): Promise<void>; 差异内容:function setBadgeNumber(badgeNumber: number): Promise<void>; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export enum SlotType 差异内容:export enum SlotType |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:SlotType; API声明:UNKNOWN_TYPE = 0 差异内容:UNKNOWN_TYPE = 0 |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:SlotType; API声明:SOCIAL_COMMUNICATION = 1 差异内容:SOCIAL_COMMUNICATION = 1 |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:SlotType; API声明:SERVICE_INFORMATION = 2 差异内容:SERVICE_INFORMATION = 2 |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:SlotType; API声明:CONTENT_INFORMATION = 3 差异内容:CONTENT_INFORMATION = 3 |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:SlotType; API声明:LIVE_VIEW = 4 差异内容:LIVE_VIEW = 4 |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:SlotType; API声明:CUSTOMER_SERVICE = 5 差异内容:CUSTOMER_SERVICE = 5 |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:SlotType; API声明:OTHER_TYPES = 0xFFFF 差异内容:OTHER_TYPES = 0xFFFF |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export enum ContentType 差异内容:export enum ContentType |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:ContentType; API声明:NOTIFICATION_CONTENT_BASIC_TEXT 差异内容:NOTIFICATION_CONTENT_BASIC_TEXT |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:ContentType; API声明:NOTIFICATION_CONTENT_LONG_TEXT 差异内容:NOTIFICATION_CONTENT_LONG_TEXT |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:ContentType; API声明:NOTIFICATION_CONTENT_PICTURE 差异内容:NOTIFICATION_CONTENT_PICTURE |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:ContentType; API声明:NOTIFICATION_CONTENT_CONVERSATION 差异内容:NOTIFICATION_CONTENT_CONVERSATION |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:ContentType; API声明:NOTIFICATION_CONTENT_MULTILINE 差异内容:NOTIFICATION_CONTENT_MULTILINE |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:ContentType; API声明:NOTIFICATION_CONTENT_SYSTEM_LIVE_VIEW 差异内容:NOTIFICATION_CONTENT_SYSTEM_LIVE_VIEW |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:ContentType; API声明:NOTIFICATION_CONTENT_LIVE_VIEW 差异内容:NOTIFICATION_CONTENT_LIVE_VIEW |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export enum SlotLevel 差异内容:export enum SlotLevel |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:SlotLevel; API声明:LEVEL_NONE = 0 差异内容:LEVEL_NONE = 0 |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:SlotLevel; API声明:LEVEL_MIN = 1 差异内容:LEVEL_MIN = 1 |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:SlotLevel; API声明:LEVEL_LOW = 2 差异内容:LEVEL_LOW = 2 |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:SlotLevel; API声明:LEVEL_DEFAULT = 3 差异内容:LEVEL_DEFAULT = 3 |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:SlotLevel; API声明:LEVEL_HIGH = 4 差异内容:LEVEL_HIGH = 4 |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type BundleOption = _BundleOption; 差异内容:export type BundleOption = _BundleOption; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationActionButton = _NotificationActionButton; 差异内容:export type NotificationActionButton = _NotificationActionButton; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationBasicContent = _NotificationBasicContent; 差异内容:export type NotificationBasicContent = _NotificationBasicContent; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationContent = _NotificationContent; 差异内容:export type NotificationContent = _NotificationContent; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationLongTextContent = _NotificationLongTextContent; 差异内容:export type NotificationLongTextContent = _NotificationLongTextContent; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationMultiLineContent = _NotificationMultiLineContent; 差异内容:export type NotificationMultiLineContent = _NotificationMultiLineContent; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationPictureContent = _NotificationPictureContent; 差异内容:export type NotificationPictureContent = _NotificationPictureContent; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationSystemLiveViewContent = _NotificationSystemLiveViewContent; 差异内容:export type NotificationSystemLiveViewContent = _NotificationSystemLiveViewContent; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationRequest = _NotificationRequest; 差异内容:export type NotificationRequest = _NotificationRequest; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type DistributedOptions = _DistributedOptions; 差异内容:export type DistributedOptions = _DistributedOptions; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationSlot = _NotificationSlot; 差异内容:export type NotificationSlot = _NotificationSlot; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationTemplate = _NotificationTemplate; 差异内容:export type NotificationTemplate = _NotificationTemplate; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationUserInput = _NotificationUserInput; 差异内容:export type NotificationUserInput = _NotificationUserInput; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationCapsule = _NotificationCapsule; 差异内容:export type NotificationCapsule = _NotificationCapsule; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationButton = _NotificationButton; 差异内容:export type NotificationButton = _NotificationButton; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationTime = _NotificationTime; 差异内容:export type NotificationTime = _NotificationTime; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:notificationManager; API声明:export type NotificationProgress = _NotificationProgress; 差异内容:export type NotificationProgress = _NotificationProgress; |
api/@ohos.notificationManager.d.ts |
| 新增API | NA | 类名:global; API声明:export interface ActionResult 差异内容:export interface ActionResult |
api/@system.notification.d.ts |
| 新增API | NA | 类名:ActionResult; API声明:bundleName: string; 差异内容:bundleName: string; |
api/@system.notification.d.ts |
| 新增API | NA | 类名:ActionResult; API声明:abilityName: string; 差异内容:abilityName: string; |
api/@system.notification.d.ts |
| 新增API | NA | 类名:ActionResult; API声明:uri: string; 差异内容:uri: string; |
api/@system.notification.d.ts |
| 新增API | NA | 类名:global; API声明:export interface ShowNotificationOptions 差异内容:export interface ShowNotificationOptions |
api/@system.notification.d.ts |
| 新增API | NA | 类名:ShowNotificationOptions; API声明:contentTitle?: string; 差异内容:contentTitle?: string; |
api/@system.notification.d.ts |
| 新增API | NA | 类名:ShowNotificationOptions; API声明:contentText?: string; 差异内容:contentText?: string; |
api/@system.notification.d.ts |
| 新增API | NA | 类名:ShowNotificationOptions; API声明:clickAction?: ActionResult; 差异内容:clickAction?: ActionResult; |
api/@system.notification.d.ts |
| 新增API | NA | 类名:global; API声明:export default class Notification 差异内容:export default class Notification |
api/@system.notification.d.ts |
| 新增API | NA | 类名:Notification; API声明:static show(options?: ShowNotificationOptions): void; 差异内容:static show(options?: ShowNotificationOptions): void; |
api/@system.notification.d.ts |
| 新增kit | 类名:global; API声明: 差异内容:NA |
类名:global; API声明:api@ohos.notificationManager.d.ts 差异内容:NotificationKit |
api/@ohos.notificationManager.d.ts |
| 新增kit | 类名:global; API声明: 差异内容:NA |
类名:global; API声明:api@system.notification.d.ts 差异内容:NotificationKit |
api/@system.notification.d.ts |
| 新增kit | 类名:global; API声明: 差异内容:NA |
类名:global; API声明:kits@kit.NotificationKit.d.ts 差异内容:NotificationKit |
kits/@kit.NotificationKit.d.ts |