NotificationCommonDef
描述应用的包信息。
说明:
本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
BundleOption
描述BundleOption信息,即应用的包信息。
系统能力:SystemCapability.Notification.Notification
| 名称 | 类型 | 只读 | 可选 | 说明 |
|---|---|---|---|---|
| bundle | string | 否 | 否 | 应用程序的名称。 |
| uid | number | 否 | 是 | 应用程序的UID。从ApplicationInfo获取,默认为0。 车机场景下,此参数为必填项。 |
GrantedBundleInfo22+
描述已授权的包信息。
系统能力:SystemCapability.Notification.Notification
| 名称 | 类型 | 只读 | 可选 | 说明 |
|---|---|---|---|---|
| bundleName | string | 否 | 否 | 应用程序的包名。 |
| appName | string | 是 | 是 | 标识应用的名称。从ApplicationInfo中label获取。 |
| appIndex | int | 是 | 否 | 应用包的分身索引标识,仅在分身应用中生效。从ApplicationInfo中appIndex获取。 |