harmony 鸿蒙NotificationSlot (System API)

  • 2025-06-12
  • 浏览 (5)

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 Read Only Optional Description
reminderMode11+ number Yes Yes 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.
- Bit 5: notification icon in the status bar. The value 0 means to enable the feature, and 1 means the opposite.
authorizedStatus12+ number Yes Yes Authorization status.
System API: This is a system API.
- 0: means the feature is authorized.
- 1: means the feature is to be authorized.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Notification Kit (User Notification Service)

harmony 鸿蒙Notification

harmony 鸿蒙Notification Error Codes

harmony 鸿蒙NotificationActionButton

harmony 鸿蒙NotificationCommonDef

harmony 鸿蒙NotificationContent (System API)

harmony 鸿蒙NotificationContent

harmony 鸿蒙NotificationFlags (System API)

harmony 鸿蒙NotificationFlags

harmony 鸿蒙NotificationRequest (System API)

0  赞