harmony 鸿蒙NotificationSlot

2023-06-24 浏览 (1073)

NotificationSlot

描述通知槽。

说明:

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

NotificationSlot

系统能力: 以下各项对应的系统能力均为SystemCapability.Notification.Notification

名称类型必填说明
typeSlotType通道类型。
levelnumber通知级别,不设置则根据通知渠道类型有默认值。
descstring通知渠道描述信息。
badgeFlagboolean是否显示角标。
bypassDndboolean是否在系统中绕过免打扰模式。
lockscreenVisibilitynumber在锁定屏幕上显示通知的模式。
vibrationEnabledboolean是否可振动。
soundstring通知提示音。
lightEnabledboolean是否闪灯。
lightColornumber通知灯颜色。
vibrationValuesArray<number>通知振动样式。
enabled9+boolean此通知插槽中的启停状态。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙接口

harmony 鸿蒙系统公共事件定义(待停用)

harmony 鸿蒙系统公共事件定义

harmony 鸿蒙开发说明

harmony 鸿蒙企业设备管理概述(仅对系统应用开放)

harmony 鸿蒙BundleStatusCallback

harmony 鸿蒙@ohos.bundle.innerBundleManager (innerBundleManager模块)

harmony 鸿蒙@ohos.distributedBundle (分布式包管理)

harmony 鸿蒙@ohos.bundle (Bundle模块)

harmony 鸿蒙@ohos.enterprise.EnterpriseAdminExtensionAbility (企业设备管理扩展能力)

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