当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1.4K Star 7.4K Fork 8.2K

OpenHarmony/docs
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
js-apis-bundle-ApplicationInfo.md 4.26 KB
一键复制 编辑 原始数据 按行查看 历史
junyi233 提交于 3年前 . 扫描缺陷修改

ApplicationInfo

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

应用程序信息

ApplicationInfo

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

名称 类型 可读 可写 说明
name string 应用程序的名称
description string 应用程序的描述
descriptionId number 应用程序的描述id
systemApp boolean 判断是否为系统应用程序,默认为false
enabled boolean 判断应用程序是否可以使用,默认为true
label string 应用程序的标签
labelId string 应用程序的标签id
icon string 应用程序的图标
iconId string 应用程序的图标id
process string 应用程序的进程,如果不设置,默认为包的名称
supportedModes number 应用程序支持的运行模式
moduleSourceDirs Array<string> 应用程序的资源存放的相对路径
permissions Array<string> 访问应用程序所需的权限
moduleInfos Array<ModuleInfo> 应用程序的模块信息
entryDir string 应用程序的文件保存路径
codePath8+ string 应用程序的安装目录
metaData8+ Map<string, Array<CustomizeData>> 应用程序的自定义元信息
metadata9+ Map<string, Array<Metadata>> 应用程序的元信息
removable8+ boolean 应用程序是否可以被移除
accessTokenId8+ number 应用程序的accessTokenId
uid8+ number 应用程序的uid
entityType8+ string 应用程序的实体类型
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
其他
1
https://gitee.com/openharmony/docs.git
git@gitee.com:openharmony/docs.git
openharmony
docs
docs
OpenHarmony-3.2-Beta1

搜索帮助