• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Common Event and Notification Subsystem
2
3The table below lists the APIs changes of the common event and notification subsystem in OpenHarmony 3.2 Beta1 over OpenHarmony 3.1 Release.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| commonEventSubscriber | CommonEventSubscriber | finishCommonEvent(callback: AsyncCallback\<void>): void;<br>finishCommonEvent(): Promise\<void>; | Added|
10| notificationSlot | NotificationSlot | readonly enabled?: boolean; | Added|
11| ohos.commonEvent | Support | COMMON_EVENT_VOLUME_EJECT = "usual.event.data.VOLUME_EJECT" | Added|
12| ohos.commonEvent | Support | COMMON_EVENT_VOLUME_BAD_REMOVAL = "usual.event.data.VOLUME_BAD_REMOVAL" | Added|
13| ohos.commonEvent | Support | COMMON_EVENT_VOLUME_MOUNTED = "usual.event.data.VOLUME_MOUNTED" | Added|
14| ohos.commonEvent | Support | COMMON_EVENT_VOLUME_UNMOUNTED = "usual.event.data.VOLUME_UNMOUNTED" | Added|
15| ohos.commonEvent | Support | COMMON_EVENT_VOLUME_REMOVED = "usual.event.data.VOLUME_REMOVED" | Added|
16| ohos.notification | notification | isNotificationSlotEnabled(bundle: BundleOption, type: SlotType, callback: AsyncCallback\<boolean>): void;<br>isNotificationSlotEnabled(bundle: BundleOption, type: SlotType): Promise\<boolean>; | Added|
17| ohos.notification | notification | enableNotificationSlot(bundle: BundleOption, type: SlotType, enable: boolean, callback: AsyncCallback\<void>): void;<br>enableNotificationSlot(bundle: BundleOption, type: SlotType, enable: boolean): Promise\<void>; | Added|
18| ohos.notification | notification | cancelAsBundle(id: number, representativeBundle: string, userId: number, callback: AsyncCallback\<void>): void;<br>cancelAsBundle(id: number, representativeBundle: string, userId: number): Promise\<void>; | Added|
19| ohos.notification | notification | publishAsBundle(request: NotificationRequest, representativeBundle: string, userId: number, callback: AsyncCallback\<void>): void;<br>publishAsBundle(request: NotificationRequest, representativeBundle: string, userId: number): Promise\<void>; | Added|
20