• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# NotificationFlags
2
3The **NotificationFlags** module implements a **NotificationFlags** instance.
4
5> **NOTE**
6>
7> 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.
8
9**System capability**: SystemCapability.Notification.Notification
10
11## Attributes
12
13| Name            | Type                   | Mandatory| Description                              |
14| ---------------- | ---------------------- | ---- | --------------------------------- |
15| soundEnabled     | [NotificationFlagStatus](#notificationflagstatus) | No  | Whether to enable the sound alert for the notification.                 |
16| vibrationEnabled | [NotificationFlagStatus](#notificationflagstatus) | No  | Whether to enable vibration for the notification.              |
17
18
19## NotificationFlagStatus
20
21Describes the notification flag status.
22
23**System capability**: SystemCapability.Notification.Notification
24
25**System API**: This is a system API and cannot be called by third-party applications.
26
27| Name          | Value | Description                              |
28| -------------- | --- | --------------------------------- |
29| TYPE_NONE      | 0   | The default flag is used.                        |
30| TYPE_OPEN      | 1   | The notification flag is enabled.                    |
31| TYPE_CLOSE     | 2   | The notification flag is disabled.                    |
32