harmony 鸿蒙RecoverableApplicationInfo (系统接口)

  • 2025-06-12
  • 浏览 (4)

RecoverableApplicationInfo (系统接口)

预置应用被卸载后可以恢复的预置应用信息,通过接口bundleManager.getRecoverableApplicationInfo获取。

说明:

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

本模块为系统接口。

导入模块

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

RecoverableApplicationInfo

预置应用被卸载后可以恢复的预置应用信息。

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

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

名称 类型 只读 可选 说明
bundleName string 应用包的名称。
moduleName string 模块名称。
labelId number 模块标签的资源ID值。
iconId number 模块图标的资源ID值。
systemApp12+ boolean 标识应用是否为系统应用,取值为true表示系统应用,取值为false表示非系统应用。
bundleType12+ BundleType 标识包的类型,取值为APP(应用)或者ATOMIC_SERVICE(原子化服务)。
codePaths12+ Array<string> 应用程序的安装目录。

你可能感兴趣的鸿蒙文章

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

0  赞