openharmony 鸿蒙 js-apis-inner-notification-notificationTemplate

2025-06-16 浏览 (1)

NotificationTemplate

通知模板。

说明:

本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。

属性

系统能力:SystemCapability.Notification.Notification

名称类型只读可选说明
namestring模板名称。当前仅支持表示下载进度的进度条通知模板,取值为'downloadTemplate'。
dataRecord<string, Object>模板数据。
- title: 表示下载标题。必填字段,值为字符串类型。
- fileName: 表示下载文件名。必填字段,值为字符串类型。
- progressValue: 表示下载进度,值为数值类型。

你可能感兴趣的鸿蒙文章

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

harmony 鸿蒙Notification

harmony 鸿蒙通知错误码

harmony 鸿蒙NotificationActionButton

harmony 鸿蒙NotificationCommonDef

harmony 鸿蒙NotificationContent(系统接口)

harmony 鸿蒙NotificationContent

harmony 鸿蒙NotificationFlags(系统接口)

harmony 鸿蒙NotificationFlags

harmony 鸿蒙NotificationRequest(系统接口)

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