openharmony 鸿蒙 js-apidiff-NotificationKit

2026-08-25 浏览 (1)

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

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 js-apidiff-ArkGraphics2D

openharmony 鸿蒙 js-apidiff-MediaKit

openharmony 鸿蒙 js-apidiff-InputKit

openharmony 鸿蒙 js-apidiff-BasicServicesKit

openharmony 鸿蒙 js-apidiff-ConnectivityKit

openharmony 鸿蒙 js-apidiff-ArkWeb

openharmony 鸿蒙 js-apidiff-MultimodalAwarenessKit

openharmony 鸿蒙 js-apidiff-ArkData

openharmony 鸿蒙 js-apidiff-NA

openharmony 鸿蒙 js-apidiff-IPCKit

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/iGKKLZJa