1e41f4b71Sopenharmony_ci# CommonEventData
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci公共事件的数据。
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **说明:**
6e41f4b71Sopenharmony_ci>
7e41f4b71Sopenharmony_ci> 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci## 属性
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci**原子化服务API:** 从API version 11开始,该接口支持在原子化服务中使用。
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**系统能力:** 以下各项对应的系统能力均为SystemCapability.Notification.CommonEvent
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci| 名称       | 类型                 | 只读 | 可选 | 说明                                                    |
16e41f4b71Sopenharmony_ci| ---------- |-------------------- | ---- | ---- |  ------------------------------------------------------- |
17e41f4b71Sopenharmony_ci| event      | string               | 否  | 否  | 表示当前接收的公共事件名称。                              |
18e41f4b71Sopenharmony_ci| bundleName | string               | 否  | 是  | 表示包名称,当前默认为空。                                              |
19e41f4b71Sopenharmony_ci| code       | number               | 否  | 是  | 表示公共事件的结果代码,用于传递int类型的数据。默认值为0。           |
20e41f4b71Sopenharmony_ci| data       | string               | 否  | 是  | 表示公共事件的自定义结果数据,用于传递string类型的数据。 |
21e41f4b71Sopenharmony_ci| parameters | {[key: string]: any} | 否  | 是  | 表示公共事件的附加信息。                                  |