• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NotificationSubscribeInfo (System API)
2
3The **NotificationSubscribeInfo** module provides APIs for defining the information about the publisher for notification subscription.
4
5> **NOTE**
6>
7> 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>
9> The APIs provided by this module are system APIs.
10
11## NotificationSubscribeInfo
12
13**System capability**: SystemCapability.Notification.Notification
14
15**System API**: This is a system API and cannot be called by third-party applications.
16
17| Name                | Type                 |  Mandatory| Description                                      |
18| -------------------- | --------------------- | --- | ------------------------------------------ |
19| bundleNames          | Array<string\>         | No | Bundle names of the applications whose notifications are to be subscribed to.                             |
20| userId               | number                | No | User ID.                                     |
21| deviceType<sup>12+</sup>           | string                | No | Device type. The value is obtained based on [device information](../apis-basic-services-kit/js-apis-device-info.md).                                   |
22| slotTypes<sup>16+</sup>   | Array<[notificationManager.SlotType](js-apis-notificationManager.md#slottype)\>| No | Types of the notification slot.|
23| filterLimit<sup>18+</sup>   | number| No | Notification filtering range. The options are as follows:<br>- **0**: All notifications are subscribed.<br>- **1**: Filter out notifications whose slot type is [SOCIAL_COMMUNICATION](js-apis-notificationManager.md#slottype) and [userInput](js-apis-inner-notification-notificationActionButton.md#notificationactionbutton) is empty.<br>- **2**: Filter out notifications whose slot type is [SOCIAL_COMMUNICATION](js-apis-notificationManager.md#slottype) and [userInput](js-apis-inner-notification-notificationActionButton.md#notificationactionbutton) is not empty.|
24