• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# CommonEventData
2
3The **CommonEventData** module provides APIs for defining common event data.
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## Attributes
10
11**System capability**: SystemCapability.Notification.CommonEvent
12
13| Name      | Type                | Readable| Writable| Description                                                   |
14| ---------- |-------------------- | ---- | ---- |  ------------------------------------------------------- |
15| event      | string               | Yes | No | Name of the common event that is being received.                             |
16| bundleName | string               | Yes | No | Bundle name. This parameter is left empty by default.                                             |
17| code       | number               | Yes | No | Result code of the common event, which is used to transfer data of the int type.          |
18| data       | string               | Yes | No | Custom result data of the common event, which is used to transfer data of the string type.|
19| parameters | {[key: string]: any} | Yes | No | Additional information about the common event.                                 |
20