harmony 鸿蒙NotificationFlags (System API)

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

NotificationFlags (System API)

The NotificationFlags module implements a NotificationFlags instance.

NOTE

The initial APIs of this module are supported since API version 8. 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 NotificationFlags.

System capability: SystemCapability.Notification.Notification

Attributes

Name Type Read Only Optional Description
reminderFlags11+ number Yes Yes Settings of the input information reminder features.
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.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Notification Kit (User Notification Service)

harmony 鸿蒙Notification

harmony 鸿蒙Notification Error Codes

harmony 鸿蒙NotificationActionButton

harmony 鸿蒙NotificationCommonDef

harmony 鸿蒙NotificationContent (System API)

harmony 鸿蒙NotificationContent

harmony 鸿蒙NotificationFlags

harmony 鸿蒙NotificationRequest (System API)

harmony 鸿蒙NotificationRequest

0  赞