1# NotificationSlot
2
3The **NotificationSlot** module provides APIs for defining the notification slot.
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## NotificationSlot
10
11**System capability**: SystemCapability.Notification.Notification
12
13| Name                | Type                | Read Only| Optional| Description                  |
14| -------------------- | ---------------------|---- | --- |----------------------|
15| type<sup>(deprecated)</sup> | [notification.SlotType](js-apis-notification.md#slottype) | No| Yes | Notification slot type.<br>This API is deprecated since API version 11. You are advised to use **notificationType** instead.               |
16| notificationType<sup>11+</sup>                 | [notificationManager.SlotType](js-apis-notificationManager.md#slottype) | No| Yes | Notification slot type.               |
17| level                | [notification.SlotLevel](../apis-notification-kit/js-apis-notificationManager.md#slotlevel)                | No| Yes | Notification level.|
18| desc                 | string                | No| Yes | Notification slot description.           |
19| badgeFlag            | boolean               | No| Yes | Whether to display the badge.             |
20| bypassDnd            | boolean               | No| Yes | Whether to bypass DND mode in the system.      |
21| lockscreenVisibility | number                | No| Yes | Mode for displaying the notification on the lock screen. Not supported currently.      |
22| vibrationEnabled     | boolean               | No| Yes | Whether to enable vibration for the notification.              |
23| sound                | string                | No| Yes | Notification alert tone.              |
24| lightEnabled         | boolean               | No| Yes | Whether the indicator blinks for the notification.               |
25| lightColor           | number                | No| Yes | Indicator color of the notification. Not supported currently.              |
26| vibrationValues      | Array\<number\>       | No| Yes | Vibration mode of the notification. Not supported currently.             |
27| enabled<sup>9+</sup> | boolean               | Yes| Yes | Whether the notification slot is enabled. The value **true** means to enable the notification slot, and **false** means the opposite.        |
28