harmony 鸿蒙Notification

  • 2025-06-16
  • 浏览 (5)

Notification

概述

Notification向应用提供通知服务的能力,包括查询当前应用通知的使能状态等。

系统能力: SystemCapability.Notification.Notification

起始版本: 13

汇总

文件

名称 描述
notification.h 声明通知服务相关的API。
引用文件:<NotificationKit/notification.h>
:libohnotification.so

函数

名称 描述
OH_Notification_IsNotificationEnabled 查询当前应用通知使能状态。

函数说明

OH_Notification_IsNotificationEnabled

bool OH_Notification_IsNotificationEnabled(void)

描述

查询当前应用通知使能状态。

起始版本: 13

返回:

返回查询结果,true表示当前应用已使能通知,false表示当前应用未使能通知。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Notification Kit(用户通知服务)

harmony 鸿蒙通知错误码

harmony 鸿蒙NotificationActionButton

harmony 鸿蒙NotificationCommonDef

harmony 鸿蒙NotificationContent(系统接口)

harmony 鸿蒙NotificationContent

harmony 鸿蒙NotificationFlags(系统接口)

harmony 鸿蒙NotificationFlags

harmony 鸿蒙NotificationRequest(系统接口)

harmony 鸿蒙NotificationRequest

0  赞