# NotificationSlot The **NotificationSlot** module provides APIs for defining the notification slot. > **NOTE** > > 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. ## NotificationSlot **System capability**: SystemCapability.Notification.Notification | Name | Type | Read-Only| Optional| Description | | -------------------- | ---------------------|---- | --- |----------------------| | type(deprecated) | [notification.SlotType](js-apis-notification.md#slottype) | No| Yes | Notification slot type.
This API is deprecated since API version 11. You are advised to use **notificationType** instead. | | notificationType11+ | [notificationManager.SlotType](js-apis-notificationManager.md#slottype) | No| Yes | Notification slot type. | | level(deprecated) | [notification.SlotLevel](js-apis-notificationManager.md#slotlevel) | No| Yes | Notification level.
This API is deprecated since API version 20. You are advised to use **notificationLevel** instead.| | notificationLevel20+ | [notificationManager.SlotLevel](js-apis-notificationManager.md#slotlevel) | No| Yes | Notification level. | | desc | string | No| Yes | Notification slot description. | | badgeFlag | boolean | No| Yes | Whether to display the badge.
- **true**: Yes.
- **false**: No. | | bypassDnd | boolean | No| Yes | Whether to bypass DND mode in the system.
- **true**: Yes.
- **false**: No. | | lockscreenVisibility | number | No| Yes | Mode for displaying the notification on the lock screen. Not supported currently. | | vibrationEnabled | boolean | No| Yes | Whether to enable vibration for the notification.
- **true**: Yes.
- **false**: No. | | sound | string | No| Yes | Name of the custom ringtone file for notifications. This file is stored in the **resources/rawfile** directory and supports formats such as M4A, AAC, MP3, OGG, WAV, FLAC, and AMR. | | lightEnabled | boolean | No| Yes | Whether the indicator blinks for the notification.
- **true**: Yes.
- **false**: No. | | lightColor | number | No| Yes | Indicator color of the notification. Not supported currently. | | vibrationValues | Array\ | No| Yes | Vibration mode of the notification. Not supported currently. | | enabled9+ | boolean | Yes| Yes | Whether the notification is enabled.
- **true**: enabled.
- **false**: disabled. |