1# Common Event Subsystem Changelog
2
3## cl.ces.1 Event Enum Change of ohos.commonEvent
4
5**Change Impact**
6
7For applications developed based on earlier versions, the following common events of the **.ohos.commonEvent** module must be adapted.
8
9| Common Event                         |
10| ----------------------------------- |
11| COMMON_EVENT_PACKAGE_CACHE_CLEARED  |
12| COMMON_EVENT_USB_STATE              |
13| COMMON_EVENT_USB_PORT_CHANGED       |
14| COMMON_EVENT_VOLUME_REMOVED         |
15| COMMON_EVENT_VOLUME_UNMOUNTED       |
16| COMMON_EVENT_VOLUME_MOUNTED         |
17| COMMON_EVENT_VOLUME_BAD_REMOVAL     |
18| COMMON_EVENT_VOLUME_EJECT           |
19| COMMON_EVENT_SLOT_CHANGE            |
20| COMMON_EVENT_SPN_INFO_CHANGED       |
21| COMMON_EVENT_QUICK_FIX_APPLY_RESULT |
22
23**Key API/Component Changes**
24
25Replace the common events in **ohos.commonEvent** with those in **ohos.commonEventManager**.
26
27| Common Event in ohos.commonEvent | Common Event in ohos.commonEventManager |
28| ----------------------------------- | ----------------------------------- |
29| COMMON_EVENT_PACKAGE_CACHE_CLEARED  | COMMON_EVENT_PACKAGE_CACHE_CLEARED  |
30| COMMON_EVENT_USB_STATE              | COMMON_EVENT_USB_STATE              |
31| COMMON_EVENT_USB_PORT_CHANGED       | COMMON_EVENT_USB_PORT_CHANGED       |
32| COMMON_EVENT_VOLUME_REMOVED         | COMMON_EVENT_VOLUME_REMOVED         |
33| COMMON_EVENT_VOLUME_UNMOUNTED       | COMMON_EVENT_VOLUME_UNMOUNTED       |
34| COMMON_EVENT_VOLUME_MOUNTED         | COMMON_EVENT_VOLUME_MOUNTED         |
35| COMMON_EVENT_VOLUME_BAD_REMOVAL     | COMMON_EVENT_VOLUME_BAD_REMOVAL     |
36| COMMON_EVENT_VOLUME_EJECT           | COMMON_EVENT_VOLUME_EJECT           |
37| COMMON_EVENT_SLOT_CHANGE            | COMMON_EVENT_SLOT_CHANGE            |
38| COMMON_EVENT_SPN_INFO_CHANGED       | COMMON_EVENT_SPN_INFO_CHANGED       |
39| COMMON_EVENT_QUICK_FIX_APPLY_RESULT | COMMON_EVENT_QUICK_FIX_APPLY_RESULT |
40
41**Adaptation Guide**
42
43Replace the events in **ohos.commonEvent** with those in **ohos.commonEventManager**.
44
45Before change:
46
47```typescript
48import commonEvent from '@ohos.commonEvent';
49let event: string = commonEvent.Support.COMMON_EVENT_PACKAGE_CACHE_CLEARED;
50```
51
52After change:
53
54```typescript
55import commonEventManager from '@ohos.commonEventManager';
56let event: string = commonEventManager.Support.COMMON_EVENT_PACKAGE_CACHE_CLEARED;
57```
58