openharmony 鸿蒙 js-apis-bundleManager-pluginBundleInfo-sys

2025-06-12 浏览 (1)

PluginBundleInfo (系统接口)

插件信息,通过接口bundleManager.getAllPluginInfo获取。

说明:

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

本模块为系统接口。

导入模块

import { bundleManager } from '@kit.AbilityKit';

PluginBundleInfo

插件信息。

系统能力: SystemCapability.BundleManager.BundleFramework.Core

系统接口: 此接口为系统接口。

名称类型只读可选说明
labelstring插件的名称。
labelIdnumber插件名称的资源id值。
iconstring插件的图标。
iconIdnumber插件图标的资源id值。
pluginBundleNamestring安装插件的应用包名。
versionCodestring插件的版本号。
versionNamestring插件的版本名称。
pluginModuleInfosArray<PluginModuleInfo>插件的模块信息。

PluginModuleInfo

插件的模块信息。

系统能力: SystemCapability.BundleManager.BundleFramework.Core

系统接口: 此接口为系统接口。

名称类型只读可选说明
moduleNamestring插件模块的名称。
descriptionIdnumber插件模块描述的资源id值。
descriptionstring插件模块的描述信息。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Ability Kit(程序框架服务)

harmony 鸿蒙AbilityBase

harmony 鸿蒙AbilityBase_Element

harmony 鸿蒙AbilityRuntime

harmony 鸿蒙bundle

harmony 鸿蒙OH_NativeBundle_ApplicationInfo

harmony 鸿蒙OH_NativeBundle_ElementName

harmony 鸿蒙ability_base_common.h

harmony 鸿蒙ability_runtime_common.h

harmony 鸿蒙application_context.h

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