harmony 鸿蒙CommonEventData
CommonEventData
公共事件的数据。
说明:
本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
属性
系统能力: 以下各项对应的系统能力均为SystemCapability.Notification.CommonEvent
| 名称 | 类型 | 可读 | 可写 | 说明 | 
|---|---|---|---|---|
| event | string | 是 | 否 | 表示当前接收的公共事件名称。 | 
| bundleName | string | 是 | 否 | 表示包名称,当前默认为空。 | 
| code | number | 是 | 否 | 表示公共事件的结果代码,用于传递int类型的数据。 | 
| data | string | 是 | 否 | 表示公共事件的自定义结果数据,用于传递string类型的数据。 | 
| parameters | {[key: string]: any} | 是 | 否 | 表示公共事件的附加信息。 | 
你可能感兴趣的鸿蒙文章
harmony 鸿蒙BundleStatusCallback
harmony 鸿蒙@ohos.bundle.innerBundleManager (innerBundleManager模块)
harmony 鸿蒙@ohos.distributedBundle (分布式包管理)
harmony 鸿蒙@ohos.bundle (Bundle模块)
harmony 鸿蒙@ohos.enterprise.EnterpriseAdminExtensionAbility (企业设备管理扩展能力)
                        
                            0
                        
                        
                             赞
                        
                    
                    
                - 所属分类: 后端技术
 - 本文标签:
 
热门推荐
- 
                        2、 - 优质文章
 - 
                        3、 gate.io
 - 
                        7、 openharmony
 - 
                        9、 golang