> 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,6 +8,7 @@
| Common Event Macro | Common Event Name | Subscriber Permissions |
| code | Read-only | number | No | Result code of the common event.<br>**System capabilities**: SystemCapability.Notification.CommonEvent|
| data | Read-only | string | No | Custom result data of the common event.<br>**System capabilities**: SystemCapability.Notification.CommonEvent|
| subscriberPermissions | Read-only | Array\<string> | No | Permissions required for subscribers to receive the common event.<br>**System capabilities**: SystemCapability.Notification.CommonEvent|
| isOrdered | Read-only | boolean | No | Whether the common event is an ordered one.<br>**System capabilities**: SystemCapability.Notification.CommonEvent|
| parameters | Read-only | {[key: string]: any} | No | Additional information about the common event.<br>**System capabilities**: SystemCapability.Notification.CommonEvent|
| events | Read-only | Array\<string> | Yes | Common events to subscribe to.<br>**System capabilities**: SystemCapability.Notification.CommonEvent|
| publisherPermission | Read-only | string | No | Permission required for the publisher.<br>**System capabilities**: SystemCapability.Notification.CommonEvent|
| publisherDeviceId | Read-only | string | No | Device ID. The value must be the ID of an existing device on the same network.<br>**System capabilities**: SystemCapability.Notification.CommonEvent|
| userId | Read-only | number | No | User ID. The default value is the ID of the current user. If this parameter is specified, the value must be an existing user ID in the system.<br>**System capabilities**: SystemCapability.Notification.CommonEvent|
| priority | Read-only | number | No | Subscriber priority. The value ranges from -100 to 1000.<br>**System capabilities**: SystemCapability.Notification.CommonEvent|
| events | Read-only | Array\<string> | Yes | Common events to subscribe to.|
| publisherPermission | Read-only | string | No | Permission required for the publisher.|
| publisherDeviceId | Read-only | string | No | Device ID. The value must be the ID of an existing device on the same network.|
| userId | Read-only | number | No | User ID. The default value is the ID of the current user. If this parameter is specified, the value must be an existing user ID in the system.|
| priority | Read-only | number | No | Subscriber priority. The value ranges from -100 to 1000.|
| code | Read-only | number | No | Result code of the common event, which is used to transfer data of the int type.<br>**System capabilities**: SystemCapability.Notification.CommonEvent|
| data | Read-only | string | No | Custom result data of the common event, which is used to transfer data of the string type.<br>**System capabilities**: SystemCapability.Notification.CommonEvent|
| parameters | Read-only | {[key: string]: any} | No | Additional information about the common event.<br>**System capabilities**: SystemCapability.Notification.CommonEvent|
Aborts this common event. After the abort, the common event is not sent to the next subscriber. This method takes effect only for ordered common events. It uses a callback to return the result.
Aborts this common event. After the abort, the common event is not sent to the next subscriber. This API takes effect only for ordered common events. It uses a callback to return the result.
Aborts this common event. After the abort, the common event is not sent to the next subscriber. This method takes effect only for ordered common events. It uses a promise to return the result.
Aborts this common event. After the abort, the common event is not sent to the next subscriber. This API takes effect only for ordered common events. It uses a promise to return the result.
Checks whether this common event is in the aborted state. This method takes effect only for ordered common events. It uses a callback to return the result.
Checks whether this common event is in the aborted state. This API takes effect only for ordered common events. It uses a callback to return the result.
Checks whether this common event is in the aborted state. This method takes effect only for ordered common events. It uses a promise to return the result.
Checks whether this common event is in the aborted state. This API takes effect only for ordered common events. It uses a promise to return the result.