openharmony 鸿蒙 js-apidiff-event-and-notification

2023-02-03 浏览 (635)

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 Beta3 over OpenHarmony 3.2 Beta2.

API Changes

ModuleClassMethod/Attribute/Enumeration/ConstantChange Type
ohos.commonEventSupportCOMMON_EVENT_QUICK_FIX_APPLY_RESULT = "usual.event.QUICK_FIX_APPLY_RESULT"Added
ohos.commonEventSupportCOMMON_EVENT_USB_PORT_CHANGED = "usual.event.hardware.usb.action.USB_PORT_CHANGED"Added
ohos.commonEventSupportCOMMON_EVENT_USB_STATE = "usual.event.hardware.usb.action.USB_STATE"Added
ohos.commonEventSupportCOMMON_EVENT_PACKAGE_CACHE_CLEARED = "usual.event.PACKAGE_CACHE_CLEARED"Added
ohos.notificationRemoveReasonCANCEL_REASON_REMOVE = 2Added
ohos.notificationRemoveReasonCLICK_REASON_REMOVE = 1Added
ohos.notificationnotificationfunction getSyncNotificationEnabledWithoutApp(userId: number, callback: AsyncCallback<boolean>): void;
function getSyncNotificationEnabledWithoutApp(userId: number): Promise<boolean>;
Added
ohos.notificationnotificationfunction setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean, callback: AsyncCallback<void>): void;
function setSyncNotificationEnabledWithoutApp(userId: number, enable: boolean): Promise<void>;
Added
ohos.notificationnotificationfunction getSyncNotificationEnabledForUninstallApp(userId: number, callback: AsyncCallback<boolean>): void;
function getSyncNotificationEnabledForUninstallApp(userId: number): Promise<boolean>;
Deleted
ohos.notificationnotificationfunction setSyncNotificationEnabledForUninstallApp(userId: number, enable: boolean, callback: AsyncCallback<void>): void;
function setSyncNotificationEnabledForUninstallApp(userId: number, enable: boolean): Promise<void>;
Deleted

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

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 Power Management Subsystem

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

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