1e41f4b71Sopenharmony_ci# NotificationFlags
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciThe **NotificationFlags** module implements a **NotificationFlags** instance.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **NOTE**
6e41f4b71Sopenharmony_ci>
7e41f4b71Sopenharmony_ci> 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.
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Notification.Notification
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci## Attributes
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci| Name            | Type                   | Read Only | Optional | Description                                        |
14e41f4b71Sopenharmony_ci| ---------------- | ---------------------- | ---- | -----|-------------------------------------------- |
15e41f4b71Sopenharmony_ci| soundEnabled     | [NotificationFlagStatus](#notificationflagstatus) | Yes | Yes | Settings of the sound alert for the notification.   |
16e41f4b71Sopenharmony_ci| vibrationEnabled | [NotificationFlagStatus](#notificationflagstatus) | Yes | Yes | Settings of the vibration for the notification. |
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci## NotificationFlagStatus
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ciEnumerates the notification flag statuses.
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Notification.Notification
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci| Name          | Value | Description                              |
26e41f4b71Sopenharmony_ci| -------------- | --- | --------------------------------- |
27e41f4b71Sopenharmony_ci| TYPE_NONE      | 0   | The default flag is used. The effect is the same as that of **TYPE_OPEN**.         |
28e41f4b71Sopenharmony_ci| TYPE_OPEN      | 1   | The notification flag is enabled.                    |
29e41f4b71Sopenharmony_ci| TYPE_CLOSE     | 2   | The notification flag is disabled.                    |
30