NotificationInfo
The NotificationInfo module describes the notification information delivered to the onReceiveMessage callback of ExtensionAbility for notification subscriptions.
NOTE
The initial APIs of this module are supported since API version 22. Newly added APIs will be marked with a superscript to indicate their earliest API version.
NotificationInfo
System capability: SystemCapability.Notification.Notification
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| hashCode | string | Yes | No | Unique identifier of the notification. |
| notificationSlotType | notificationManager.SlotType | Yes | No | Notification slot type. |
| content | NotificationExtensionContent | Yes | No | Notification content. |
| bundleName | string | Yes | No | Name of the bundle that creates the notification. |
| appIndex | number | Yes | No | Index of the application clone that creates the notification. It takes effect only for application clones. |
| appName | string | Yes | Yes | Name of the application that creates the notification. |
| deliveryTime | number | Yes | Yes | Timestamp (in milliseconds) when the notification is published. |
| groupName | string | Yes | Yes | Notification group name, which is left empty by default. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 js-apis-inner-notification-notificationFlags
openharmony 鸿蒙 js-apis-notificationSubscribe-sys
openharmony 鸿蒙 js-apis-notificationSubscriberExtensionAbility
openharmony 鸿蒙 errorcode-notification
openharmony 鸿蒙 js-apis-inner-notification-notificationExtensionContent
openharmony 鸿蒙 js-apis-notification-sys
openharmony 鸿蒙 js-apis-inner-notification-notificationContent-sys
openharmony 鸿蒙 js-apis-inner-notification-notificationCommonDef
openharmony 鸿蒙 js-apis-inner-notification-notificationTemplate