NotificationSlot (System API)

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.

This topic describes only system APIs provided by the module. For details about its public APIs, see NotificationSlot.

NotificationSlot

System capability: SystemCapability.Notification.Notification

Name Type Mandatory Description
reminderMode11+ number No Reminder mode of the notification.
System API: This is a system API.
- Bit 0: sound alert. The value 0 means to enable the feature, and 1 means the opposite.
- Bit 1: locking the screen. The value 0 means to enable the feature, and 1 means the opposite.
- Bit 2: banner. The value 0 means to enable the feature, and 1 means the opposite.
- BIt 3: turning on the screen. The value 0 means to enable the feature, and 1 means the opposite.
- Bit 4: vibration. The value 0 means to enable the feature, and 1 means the opposite.