harmony 鸿蒙JS API Changes of the Common Event and Notification Subsystem

  • 2023-02-03
  • 浏览 (540)

JS API Changes of the Common Event and Notification Subsystem

The table below lists the APIs changes of the common event and notification subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.

API Changes

Module Class Method/Attribute/Enumeration/Constant Change Type
notificationRequest NotificationRequest badgeNumber?: number; Added
notificationRequest NotificationRequest removalWantAgent?: WantAgent; Added
ohos.commonEvent Support COMMON_EVENT_SPN_INFO_CHANGED = “usual.event.SPN_INFO_CHANGED” Added
ohos.commonEvent Support COMMON_EVENT_SLOT_CHANGE = “usual.event.SLOT_CHANGE” Added
ohos.notification notification getSyncNotificationEnabledForUninstallApp(userId: number, callback: AsyncCallback<boolean>): void;
getSyncNotificationEnabledForUninstallApp(userId: number): Promise<boolean>;
Added
ohos.notification notification setSyncNotificationEnabledForUninstallApp(userId: number, enable: boolean, callback: AsyncCallback<void>): void;
setSyncNotificationEnabledForUninstallApp(userId: number, enable: boolean): Promise<void>;
Added

你可能感兴趣的鸿蒙文章

harmony 鸿蒙JS API Changes of the Ability Framework

harmony 鸿蒙JS API Changes of the Accessibility Subsystem

harmony 鸿蒙JS API Changes of the Account Subsystem

harmony 鸿蒙JS API Changes of the ArkUI Development Framework

harmony 鸿蒙JS API Changes of the Bundle Management Framework

harmony 鸿蒙JS API Changes of the Communication Subsystem

harmony 鸿蒙JS API Changes of the Compiler and Runtime Subsystem

harmony 鸿蒙JS API Changes of the DFX Subsystem

harmony 鸿蒙JS API Changes of the Distributed Data Management Subsystem

harmony 鸿蒙JS API Changes of the File Management Subsystem

0  赞