• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NotificationRequest(系统接口)
2
3描述通知的请求。
4
5> **说明:**
6>
7> 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
8>
9> 当前界面仅包含本模块的系统接口,其他公开接口参见[NotificationRequest](./js-apis-inner-notification-notificationRequest.md)。
10
11## NotificationRequest
12
13**系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
14
15| 名称                            | 类型                                                    |  只读 | 必填 | 说明                                                                    |
16|-------------------------------| -------------------------------------------------------- | ----- | --- |-----------------------------------------------------------------------|
17| overlayIcon<sup>11+<sup>      | [image.PixelMap](../apis-image-kit/js-apis-image.md#pixelmap7)             |   否  | 否  | 通知重叠图标。可选字段,大小不超过30KB。<br>**系统接口**: 此接口为系统接口。                                                 |
18| classification                | string                                                   |   否  | 否  | 通知分类。<br>**系统接口**: 此接口为系统接口。                               |
19| isRemoveAllowed<sup>8+<sup>   | boolean                                                  |   否  | 否  | 通知是否能被移除(点击通知下方删除按钮无法删除,左滑不出现删除按钮)。<br>**系统接口**: 此接口为系统接口。<br>**需要权限**: ohos.permission.SET_UNREMOVABLE_NOTIFICATION |
20| source<sup>8+<sup>            | number                                                   |   是  | 否  | 通知源。<br>**系统接口**: 此接口为系统接口。                                |
21| deviceId<sup>8+<sup>          | string                                                   |   是  | 否  | 通知源的deviceId。<br>**系统接口**: 此接口为系统接口。                       |
22
23## DistributedOptions
24
25描述分布式选项。
26
27**系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
28
29| 名称                   | 类型            | 必填 | 说明                               |
30| ---------------------- | -------------- | ---- | ---------------------------------- |
31| remindType<sup>8+<sup>             | number         | 否   | 通知的提醒方式。<br>**系统接口**: 此接口为系统接口。  |
32
33
34## NotificationFilter<sup>11+</sup>
35
36描述查询普通实况窗时的筛选条件。
37
38**系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
39
40**系统接口**: 此接口为系统接口。
41
42| 名称            | 类型                                   | 必填 | 说明                               |
43| ----------------| ------------------------------------- | ---- | ---------------------------------- |
44| bundle          | [BundleOption](js-apis-inner-notification-notificationCommonDef.md#bundleoption) | 是   | 实况通知的包信息。|
45| notificationKey | [NotificationKey](js-apis-notificationSubscribe-sys.md#notificationkey) | 是   | 通知信息,包含通知ID和通知标签。   |
46| extraInfoKeys   | Array\<string>                        | 否   | 筛选附加信息的键值列表。不填表示查询所有的附加信息。|
47
48
49## NotificationCheckRequest<sup>11+</sup>
50
51描述通知的鉴权信息。
52
53**系统能力**:以下各项对应的系统能力均为SystemCapability.Notification.Notification
54
55**系统接口**: 此接口为系统接口。
56
57| 名称          | 类型                                                       | 必填 | 说明              |
58| --------------| --------------------------------------------------------- | ---- | ----------------- |
59| contentType   | [ContentType](js-apis-notificationManager.md#contenttype) | 是   | 通知类型。         |
60| slotType      | [SlotType](js-apis-notificationManager.md#slottype)       | 是   | 渠道类型。         |
61| extraInfoKeys | Array\<string>                                            | 是   | 实况通知的附加信息。|
62