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