openharmony 鸿蒙 js-apis-inner-notification-notificationFlags-sys

2025-06-12 浏览 (1)

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

NameTypeRead OnlyOptionalDescription
reminderFlags11+numberYesYesSettings 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

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/Q2YJ0W