openharmony 鸿蒙 capi-notification

2025-06-16 浏览 (1)

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

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/Goh3gv