harmony 鸿蒙Notification

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

Notification

Overview

The Notification module provides the notification capabilities for applications.

System capability: SystemCapability.Notification.Notification

Since: 13

Summary

Files

Name Description
notification.h Defines the APIs for notification service.
File to include:
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.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Notification Kit (User Notification Service)

harmony 鸿蒙Notification Error Codes

harmony 鸿蒙NotificationActionButton

harmony 鸿蒙NotificationCommonDef

harmony 鸿蒙NotificationContent (System API)

harmony 鸿蒙NotificationContent

harmony 鸿蒙NotificationFlags (System API)

harmony 鸿蒙NotificationFlags

harmony 鸿蒙NotificationRequest (System API)

harmony 鸿蒙NotificationRequest

0  赞