harmony 鸿蒙CommonEventSubscribeInfo

2023-06-24 浏览 (921)

CommonEventSubscribeInfo

用于表示订阅者的信息。

说明:

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

属性

系统能力: SystemCapability.Notification.CommonEvent

名称类型可读可写说明
eventsArray<string>表示要订阅的公共事件。
publisherPermissionstring表示发布者的权限,订阅方将只能接收到具有该权限的发送方发布的事件。
publisherDeviceIdstring表示设备ID,该值必须是同一ohos网络上的现有设备ID。
userIdnumber表示用户ID。此参数是可选的,默认值当前用户的ID。如果指定了此参数,则该值必须是系统中现有的用户ID。
prioritynumber表示订阅者的优先级。值的范围是-100到1000,超过上下限的优先级将被设置为上下限值。
publisherBundleNamestring表示要订阅的发布者的bundleName。

你可能感兴趣的鸿蒙文章

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/a2c0b10c15084cada2cbfd00588f3a3c