1# CommonEventPublishData 2 3The **CommonEventPublishData** module provides APIs for defining common event content and attributes. 4 5> **NOTE** 6> 7> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. 8> 9> If there is no restriction, any application can subscribe to common events and read related information. In this case, sensitive information should not be carried in common events. The **subscriberPermissions** and **bundleName** parameters of this module can be used to restrict the receiving scope of common events. 10 11## Attributes 12 13**System capability**: SystemCapability.Notification.CommonEvent 14 15| Name | Type | Read Only| Optional| Description | 16| --------------------- | -------------------- | ---- | ---- | ---------------------------- | 17| bundleName | string | No | Yes | Bundle name of the subscriber that can receive the common event.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 18| code | number | No | Yes | Result code of the common event. The default value is **0**.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 19| data | string | No | Yes | Custom result data of the common event.<br>**Atomic service API**: This API can be used in atomic services since API version 11.| 20| subscriberPermissions | Array\<string> | No | Yes | Permissions required for subscribers to receive the common event.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 21| isOrdered | boolean | No | Yes | Whether the common event is an ordered one. | 22| isSticky | boolean | No | Yes | Whether the common event is a sticky one. Only system applications and system services are allowed to send sticky events.| 23| parameters | {[key: string]: any} | No | Yes | Additional information about the common event.<br>**Atomic service API**: This API can be used in atomic services since API version 11. | 24