Notification
Overview
Describes the notification capabilities provided by the Notification for applications.
System capability: SystemCapability.Notification.Notification
Since: 13
Summary
Files
| Name | Description |
|---|---|
| notification.h | Defines the APIs for notification service. File to include: <NotificationKit/notification.h> Library: libohnotification.so |
Functions
| Name | Description |
|---|---|
| OH_Notification_IsNotificationEnabled | Queries the notification enabling state of the application. |
Function Description
OH_Notification_IsNotificationEnabled
bool OH_Notification_IsNotificationEnabled(void)
Description
Queries the notification enabling state of the application.
Since: 13
Returns
Returns true if the notification is enabled; returns false otherwise.