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

  • 2022-10-28
  • 浏览 (507)

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(鸿蒙)Readme

harmony(鸿蒙)Adaptation Guide for the Application Sandbox

harmony(鸿蒙)Updates (OpenHarmony 3.2 Beta1 -> OpenHarmony 3.2 Beta2)

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 Utils Subsystem

0  赞