NotificationInfo

通知订阅扩展能力中onReceiveMessage回调的通知信息。

说明:

本模块首批接口从API version 22开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。

NotificationInfo

系统能力:SystemCapability.Notification.Notification

名称 类型 只读 可选 说明
hashCode string 通知的唯一标识符。
notificationSlotType notificationManager.SlotType 通知渠道类型。
content NotificationExtensionContent 通知内容。
bundleName string 创建通知的包名。
appIndex number 创建通知的应用包的分身索引标识,仅在分身应用中生效。
appName string 创建通知的应用程序名称。
deliveryTime number 通知发布的时间戳。
数据格式:时间戳。
单位:ms。
groupName string 通知组名称。默认情况下此参数为空。